lkml.org 
[lkml]   [2020]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v6 08/17] static_call: Avoid kprobes on inline static_call()s
On Fri, Jul 10, 2020 at 06:00:14PM -0400, Steven Rostedt wrote:

> > +int static_call_text_reserved(void *start, void *end)
> > +{
> > + int ret = __static_call_text_reserved(__start_static_call_sites,
> > + __stop_static_call_sites, start, end);
> > +
> > + if (ret)
> > + return ret;
> > +
> > +#ifdef CONFIG_MODULES
> > + ret = __static_call_mod_text_reserved(start, end);
> > +#endif
>
> Nit, but why not have a #else /* !CONFIG_MODULE */ above and just:
>
> static inline int __static_call_mod_text_reserve(..)
> {
> return 0;
> }
> #endif
>
> ?

Done.

\
 
 \ /
  Last update: 2020-07-11 12:32    [W:0.057 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site