Re: [PATCH] intel_mid_dma: Fix section mismatch warnings
From: Dan Williams
Date: Fri Dec 03 2010 - 20:13:24 EST
On Tue, Nov 30, 2010 at 12:24 AM, <Major_Lee@xxxxxxxxxxx> wrote:
> Fix the following section mismatch warnings.
Actually no, this patch does not fix the warnings, it hides them by
undoing the annotation.
Take a closer look at the warning message:
>
> WARNING: drivers/built-in.o(.data+0xfa10): Section mismatch in reference
> from the variable intel_mid_dma_pci to the function
> .devinit.text:intel_mid_dma_probe()
> The variable intel_mid_dma_pci references the function __devinit
> intel_mid_dma_probe() If the reference is valid then annotate the
> variable with __init* or __refdata (see linux/init.h) or name the
> variable:
> *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
> *_console,
Let me highlight the relevant suggestion:
> or name the variable:
> *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
> *_console,
...nowhere does it say delete the __devinit annotation.
--
Dan
--
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/