WARNING: drivers/built-in.o(.devinit.text+0xa9b48): Section mismatch in reference from the function bbc_i2c_probe() to the function .init.text:attach_one_i2c.constprop.1()
Grant Likely
grant.likely at secretlab.ca
Thu Nov 15 22:57:32 EST 2012
On Tue, 30 Oct 2012 22:39:11 +0800, Fengguang Wu <fengguang.wu at intel.com> wrote:
> Hi Grant,
>
> Here is an aged warning in sparc allyesconfig builds and it seems that
> attach_one_i2c() is only called by bbc_envctrl_init().
>
> WARNING: drivers/built-in.o(.devinit.text+0xa9b48): Section mismatch in reference from the function bbc_i2c_probe() to the function .init.text:attach_one_i2c.constprop.1()
> The function __devinit bbc_i2c_probe() references
> a function __init attach_one_i2c.constprop.1().
> If attach_one_i2c.constprop.1 is only used by bbc_i2c_probe then
> annotate attach_one_i2c.constprop.1 with a matching annotation.
Looks like attach_one_i2c needs to be switched to __devinit. I don't
have any involvement with that code though. Craft a patch and send it to
the sparc list.
g.
More information about the devicetree-discuss
mailing list