lkml.org 
[lkml]   [2011]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: warning: ‘x86 get event constraints’ defined but not used
From
Date
On Mon, 2011-08-15 at 20:40 -0300, Kevin Winchester wrote:
> Is there are reason why those C
> files are included directly in another C file rather than being linked
> together?

Sheer suckyness on my part.. we needed a 'quick' fix to make these
CPU_SUP_* things build at all and never got around to cleaning it up
afterwards.

> Or is there some other way the code could be improved and
> also remove the warning at the same time?

creation of a arch/x86/kernel/cpu/perf_event.h and enough code massage
to make all these .c files compile independently would be appreciated,
not sure that'll immediately solve your issue though.

> I do not mind doing some coding here to make this happen. I am very
> close to a warning-free build, so I would definitely like to take care
> of this one.

You could slip something like it into the 'cleanup' if nothing else
presents itself :-)


\
 
 \ /
  Last update: 2011-08-23 15:27    [W:0.770 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site