sata_highbank: mismatch in reference

Grant Likely grant.likely at secretlab.ca
Mon Oct 8 04:06:30 EST 2012


On Oct 7, 2012 3:05 PM, "Sami Kerola" <kerolasa at iki.fi> wrote:
>
> FYI maintainers,
>
> I tried to compile linus git kernel (v3.6-7996-g0b8e74c) and got
> mismatch warning. I am not sure, but the warning might have something
> to do config option CONFIG_OPTIMIZE_INLINING=y. Here are the
> interesting lines from compilation attempt.
>
> WARNING: drivers/ata/sata_highbank.o(.data+0x0): Section mismatch in
> reference from the variable ahci_highbank_driver to the function
> .init.text:ahci_highbank_probe()
> The variable ahci_highbank_driver references
> the function __init ahci_highbank_probe()
> If the reference is valid then annotate the
> variable with __init* or __refdata (see linux/init.h) or name the variable:
> *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

This error means that the _probe and _release hooks need to be changed
from __init to __devinit and __exit to __devexit.

g.


More information about the devicetree-discuss mailing list