lkml.org 
[lkml]   [2022]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] trace: Fix some checker warnings
Date
Masami Hiramatsu (Google) <mhiramat@kernel.org> wrote:

> > +#if defined(CONFIG_TRACER_MAX_TRACE) || defined(CONFIG_HWLAT_TRACER)
> > static const struct file_operations tracing_max_lat_fops;
> > +#endif
>
> Oops, I missed this part. Why did you introduced this #ifdefs?

Because:

#if defined(CONFIG_TRACER_MAX_TRACE) || defined(CONFIG_HWLAT_TRACER)
static const struct file_operations tracing_max_lat_fops = {

in the same file. You get something like an unused symbol warning otherwise
if neither config option is defined.

David

\
 
 \ /
  Last update: 2022-12-05 09:30    [W:0.103 / U:0.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site