Skip to contentSkip to conversation

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()

DISCUSSION Grant Likely 1 participant 1 message Nov 15, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20121030143911.GA20034@localhost

#1 lore raw
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 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.