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

[PATCH] parport_pc: fix section mismatch warnings (v2)

From: Randy Dunlap <rdunlap@xenotime.net>

Fix all modpost section mismatch warnings in parport_pc:

WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x230)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x283)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x3e6)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x400)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x463)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x488)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data:superios from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x54c)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data: from .text.parport_pc_probe_port after 'parport_pc_probe_port' (at offset 0x56a)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data: from .text.parport_pc_pci_probe after 'parport_pc_pci_probe' (at offset 0x67)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data: from .text.parport_pc_pci_probe after 'parport_pc_pci_probe' (at offset 0x9f)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data: from .text.parport_pc_pci_probe after 'parport_pc_pci_probe' (at offset 0xa7)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data:cards from .text.parport_pc_pci_probe after 'parport_pc_pci_probe' (at offset 0x132)
WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.data: from .text.parport_pc_pci_probe after 'parport_pc_pci_probe' (at offset 0x142)

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Randy.Dunlap and committed by
Linus Torvalds
96766a3c 3fb0cb5d

+10 -10
+10 -10
drivers/parport/parport_pc.c
··· 97 97 int io; 98 98 int irq; 99 99 int dma; 100 - } superios[NR_SUPERIOS] __devinitdata = { {0,},}; 100 + } superios[NR_SUPERIOS] = { {0,},}; 101 101 102 102 static int user_specified; 103 103 #if defined(CONFIG_PARPORT_PC_SUPERIO) || \ ··· 1557 1557 return PARPORT_DMA_NONE; 1558 1558 } 1559 1559 1560 - static int __devinit get_superio_irq (struct parport *p) 1560 + static int get_superio_irq (struct parport *p) 1561 1561 { 1562 1562 int i=0; 1563 1563 while( (superios[i].io != p->base) && (i<NR_SUPERIOS)) ··· 1579 1579 * this shall always be the case!) 1580 1580 * 1581 1581 */ 1582 - static int __devinit parport_SPP_supported(struct parport *pb) 1582 + static int parport_SPP_supported(struct parport *pb) 1583 1583 { 1584 1584 unsigned char r, w; 1585 1585 ··· 1660 1660 * two bits of ECR aren't writable, so we check by writing ECR and 1661 1661 * reading it back to see if it's what we expect. 1662 1662 */ 1663 - static int __devinit parport_ECR_present(struct parport *pb) 1663 + static int parport_ECR_present(struct parport *pb) 1664 1664 { 1665 1665 struct parport_pc_private *priv = pb->private_data; 1666 1666 unsigned char r = 0xc; ··· 1712 1712 * be misdetected here is rather academic. 1713 1713 */ 1714 1714 1715 - static int __devinit parport_PS2_supported(struct parport *pb) 1715 + static int parport_PS2_supported(struct parport *pb) 1716 1716 { 1717 1717 int ok = 0; 1718 1718 ··· 1868 1868 } 1869 1869 #endif 1870 1870 1871 - static int __devinit parport_ECPPS2_supported(struct parport *pb) 1871 + static int parport_ECPPS2_supported(struct parport *pb) 1872 1872 { 1873 1873 const struct parport_pc_private *priv = pb->private_data; 1874 1874 int result; ··· 1886 1886 1887 1887 /* EPP mode detection */ 1888 1888 1889 - static int __devinit parport_EPP_supported(struct parport *pb) 1889 + static int parport_EPP_supported(struct parport *pb) 1890 1890 { 1891 1891 const struct parport_pc_private *priv = pb->private_data; 1892 1892 ··· 1931 1931 return 1; 1932 1932 } 1933 1933 1934 - static int __devinit parport_ECPEPP_supported(struct parport *pb) 1934 + static int parport_ECPEPP_supported(struct parport *pb) 1935 1935 { 1936 1936 struct parport_pc_private *priv = pb->private_data; 1937 1937 int result; ··· 2073 2073 * When ECP is available we can autoprobe for IRQs. 2074 2074 * NOTE: If we can autoprobe it, we can register the IRQ. 2075 2075 */ 2076 - static int __devinit parport_irq_probe(struct parport *pb) 2076 + static int parport_irq_probe(struct parport *pb) 2077 2077 { 2078 2078 struct parport_pc_private *priv = pb->private_data; 2079 2079 ··· 2779 2779 /* If set, this is called after probing for ports. If 'failed' 2780 2780 * is non-zero we couldn't use any of the ports. */ 2781 2781 void (*postinit_hook) (struct pci_dev *pdev, int failed); 2782 - } cards[] __devinitdata = { 2782 + } cards[] = { 2783 2783 /* siig_1p_10x */ { 1, { { 2, 3 }, } }, 2784 2784 /* siig_2p_10x */ { 2, { { 2, 3 }, { 4, 5 }, } }, 2785 2785 /* siig_1p_20x */ { 1, { { 0, 1 }, } },