Re: kbuild - status on section mismatch warnings

From: Al Viro
Date: Sun Mar 05 2006 - 18:50:08 EST


On Sun, Mar 05, 2006 at 10:58:53PM +0100, Sam Ravnborg wrote:
> Hi Al.
>
> > Now try x86 with sd.o non-modular. And see
> >
> >
> > __init foo()
> > {
> > ....
> > switch(n) {
> > ....
> > ....
> > }
> > }
> Hmm, in my tree sd.o has no switch in the init function. But that does
> not change your point which is valid indeed.

sd_major() gets inlined there with sufficiently recent gcc.

> For the same reason references to .init.text from .rodata are not warned
> upon - there are simply too many compielr generated false positives.
>
> Following is the original comment from reference_init.pl:

Oops, right you are - it's reference_discarded that gets buggered on that.
My apologies. Still gets a spew on make buildcheck, though...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/