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()
A message that is not in the archive (sent off-list or not yet received): 20121030143911.GA20034@localhost
Quoted 10 lines · Fengguang Wu
Hi Grant,
Here is an aged warning in sparc allyesconfig builds and it seems that
attach_one_i2c()is only called bybbc_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__devinitbbc_i2c_probe()references
a function__initattach_one_i2c.constprop.1().
If attach_one_i2c.constprop.1 is only used bybbc_i2c_probethen
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.