• Sam Ravnborg's avatar
    bbc_i2c: fix section mismatch warning · 6e51f857
    Sam Ravnborg authored
    Fix following warning:
    
    WARNING: drivers/sbus/char/bbc.o(.text+0x674): Section mismatch in reference from the function bbc_i2c_probe() to the function .init.text:T.463()
    The function bbc_i2c_probe() references the function __init T.463().
    This is often because bbc_i2c_probe lacks a __init
    annotation or the annotation of T.463 is wrong.
    
    bbc_i2c_probe() referenced the inlined attach_one_i2c().
    As probe may be called after init drop __init annotations
    on all functions used by bbc_i2c_probe()
    
    The warning was seen with a sparc64 defconfig build
    Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6e51f857
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
bbc_envctrl.c Loading commit data...
bbc_i2c.c Loading commit data...
bbc_i2c.h Loading commit data...
display7seg.c Loading commit data...
envctrl.c Loading commit data...
flash.c Loading commit data...
jsflash.c Loading commit data...
max1617.h Loading commit data...
openprom.c Loading commit data...
uctrl.c Loading commit data...