]> git.baikalelectronics.ru Git - kernel.git/commit
PCnet: Fix section mismatch
authorRalf Baechle <ralf@linux-mips.org>
Wed, 10 Aug 2011 05:23:46 +0000 (05:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Aug 2011 14:42:45 +0000 (07:42 -0700)
commit752332fd620f022a113002a9c8faf09921a146eb
tree8d53d6e23557f389f160715a4288f4fe25e56bb9
parent4332cef400d70f01cb62ea21b55f957b500f04a5
PCnet: Fix section mismatch

Building MIPS mtx1_defconfig results in:

  MODPOST 735 modules
WARNING: drivers/net/pcnet32.o(.devinit.text+0x11ec): Section mismatch in reference from the function pcnet32_probe_vlbus.constprop.22() to the variable .init.data:pcnet32_portlist
The function __devinit pcnet32_probe_vlbus.constprop.22() references
a variable __initdata pcnet32_portlist.
If pcnet32_portlist is only used by pcnet32_probe_vlbus.constprop.22 then
annotate pcnet32_portlist with a matching annotation.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pcnet32.c