On Sat, Mar 24, 2007 at 12:31:27AM +0100, Sam Ravnborg wrote:
> >
> > static struct __initdata chipset early_qrk[] = {
> > { PCI_VENDOR_ID_NVIDIA, nvidia_bugs },
> > { PCI_VENDOR_ID_VIA, via_bugs },
> > { PCI_VENDOR_ID_ATI, ati_bugs },
> > {}
> > };
> In this case it is only good that sparse complains because the
> __initdata is not placed right before the variable name as it should be.
>
It has different meanings. If it place before the struct.
The attribute only apply to early_qrk.
If it is place between the struct and name. Declaration using
struct chipset later will get the attribute.
Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html