]> git.baikalelectronics.ru Git - kernel.git/commit
net: eth: 8390: remove section warning in etherh.c
authorOlof Johansson <olof@lixom.net>
Thu, 12 Dec 2013 08:39:37 +0000 (00:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Dec 2013 19:02:20 +0000 (14:02 -0500)
commit53380009c67fdae5fd9b0ea2e7108ba134008613
tree72dfb6b56ebd440a1cbd7fcf99163b6f7cb92fbb
parent910f05f56ee414f9ae38a12bb891619a309348cb
net: eth: 8390: remove section warning in etherh.c

Commit 5583568d917c ('8390 : Replace ei_debug with msg_enable/NETIF_MSG_*
feature') ended up moving the printout of version[] from something that
will be compiled out due to defines, to something that is now evaluated
at runtime.

That means that what always used to be an access to an __initdata string
from non-__init code started showing up as a section mismatch when it
didn't before.

All other 8390 versions skip __initdata on the version string, and
starting to annotate the whole chain of callers with __init seems like
more churn than it's worth on this driver, so remove it from etherh.c as well.

Fixes: 5583568d917c ('8390 : Replace ei_debug with msg_enable/NETIF_MSG_* feature')
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/etherh.c