Re: Compile Warnings on 2.6.16-rc5-mm1

Kevin Winchester
2006-03-03T01:16:45Z

Kevin Winchester wrote:
>
> I get the following compile warnings on 2.6.16-rc5-mm1. I am looking
> into them, but someone probably knows why they're there right off.
>
> In file included from include/asm/hw_irq.h:23,
> from include/linux/irq.h:94,
> from include/asm/hardirq.h:6,
> from include/linux/hardirq.h:7,
> from include/linux/interrupt.h:11,
> from include/linux/rtc.h:14,
> from drivers/rtc/interface.c:14:
> include/linux/profile.h:66: warning: "struct notifier_block" declared
> inside parameter list
> include/linux/profile.h:66: warning: its scope is only this definition
> or declaration, which is probably not what you want
> include/linux/profile.h:71: warning: "struct notifier_block" declared
> inside parameter list
> include/linux/profile.h:76: warning: "struct notifier_block" declared
> inside parameter list
> include/linux/profile.h:81: warning: "struct notifier_block" declared
> inside parameter list
>
>
> These come up in lots and lots of files. Everything that includes
> hardirq.h it seems. My config is below.
>
<snip config>

I discovered I can make these go away by enabling CONFIG_PROFILING,
which was a wild guess since the problem happened in profile.h.

Kevin