diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2011-08-10 05:23:46 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-11 07:42:45 -0700 |
commit | aa02bc7084501d2edecb0e5b9de56da070db19aa (patch) | |
tree | 8d53d6e23557f389f160715a4288f4fe25e56bb9 /drivers/net | |
parent | 7712b644964c36d1216315b791faccc7d5238b16 (diff) | |
download | linux-aa02bc7084501d2edecb0e5b9de56da070db19aa.tar.gz linux-aa02bc7084501d2edecb0e5b9de56da070db19aa.tar.bz2 linux-aa02bc7084501d2edecb0e5b9de56da070db19aa.zip |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/pcnet32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index 8b3090dc4bcd..80b6f36a8074 100644 --- a/drivers/net/pcnet32.c +++ b/drivers/net/pcnet32.c @@ -82,7 +82,7 @@ static int cards_found; /* * VLB I/O addresses */ -static unsigned int pcnet32_portlist[] __initdata = +static unsigned int pcnet32_portlist[] = { 0x300, 0x320, 0x340, 0x360, 0 }; static int pcnet32_debug; |