Re: [PATCH 2.6.27.3 usbcore] Move __module_param_call(nousb) toimmediately after declaration of nousb.

From: Greg KH
Date: Fri Oct 24 2008 - 00:22:10 EST


On Fri, Oct 24, 2008 at 10:58:02AM +0900, Tetsuo Handa wrote:
> Hello.
>
> I don't know the reason, but the below patch solves the problem which I'm
> experiencing with CONFIG_USB=y on Debian Sarge (gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)).
>
> Something is wrong with sorting symbol table or walking sysfs tree?
>
> Without this patch:

This really sounds like a compiler bug somewhere, reordering this
shouldn't "fix" this issue. Is 3.3.5 still supported by the Debian
team? I know the minimum gcc version is 3.2 for the kernel, so it's
strange that no one else sees this.

I've tried gcc 4.1.2 and 4.3.2 and can't see this either, so something
wierd is going on.

Can you duplicate this in a stand-alone test module?

thanks,

greg k-h
--
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/