Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ralf Baechle and committed by
David S. Miller
aa02bc70 7712b644

+1 -1
+1 -1
drivers/net/pcnet32.c
··· 82 82 /* 83 83 * VLB I/O addresses 84 84 */ 85 - static unsigned int pcnet32_portlist[] __initdata = 85 + static unsigned int pcnet32_portlist[] = 86 86 { 0x300, 0x320, 0x340, 0x360, 0 }; 87 87 88 88 static int pcnet32_debug;