Skip to contentSkip to conversation

pata_it821x: fix section mismatch warning

PATCH Applied Randy Dunlap 3 participants 3 messages Jun 25, 2007 – Jun 27, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pata_it821x: fix section mismatch warning

From: Randy Dunlap <[email protected]>

Fix section mismatch when CONFIG_HOTPLUG=n (but functions are used for resume):

WARNING: drivers/ata/pata_it821x.o(.text+0x3f): Section mismatch: reference to .init.text: (between 'it821x_reinit_one' and 'it821x_program_udma')
WARNING: drivers/ata/pata_it821x.o(.text+0x691): Section mismatch: reference to .init.text: (between 'it821x_init_one' and 'it821x_passthru_set_dmamode')

---
 drivers/ata/pata_it821x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/pata_it821x.c +1 -1
@@ -690,7 +690,7 @@ static struct ata_port_operations it821x
 	.port_start	= it821x_port_start,
 };
 
-static void __devinit it821x_disable_raid(struct pci_dev *pdev)
+static void it821x_disable_raid(struct pci_dev *pdev)
 {
 	/* Reset local CPU, and set BIOS not ready */
 	pci_write_config_byte(pdev, 0x5E, 0x01);
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix section mismatch when CONFIG_HOTPLUG=n (but functions are used for resume):

WARNING: drivers/ata/pata_it821x.o(.text+0x3f): Section mismatch: reference to .init.text: (between 'it821x_reinit_one' and 'it821x_program_udma')
WARNING: drivers/ata/pata_it821x.o(.text+0x691): Section mismatch: reference to .init.text: (between 'it821x_init_one' and 'it821x_passthru_set_dmamode')

Applied
#2 lore raw
In reply to Randy Dunlap
Quoted 16 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix section mismatch when CONFIG_HOTPLUG=n (but functions are used for resume):

WARNING: drivers/ata/pata_it821x.o(.text+0x3f): Section mismatch: reference to .init.text: (between 'it821x_reinit_one' and 'it821x_program_udma')
WARNING: drivers/ata/pata_it821x.o(.text+0x691): Section mismatch: reference to .init.text: (between 'it821x_init_one' and 'it821x_passthru_set_dmamode')

---
 drivers/ata/pata_it821x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

drivers/ata/pata_it821x.c static struct ata_port_operations it821x · line 696

Quoted 8 lines
drivers/ata/pata_it821x.c +1 -1
@@ -690,7 +690,7 @@ static struct ata_port_operations it821x
 	.port_start	= it821x_port_start,
 };
 
-static void __devinit it821x_disable_raid(struct pci_dev *pdev)
+static void it821x_disable_raid(struct pci_dev *pdev)
 {
 	/* Reset local CPU, and set BIOS not ready */
 	pci_write_config_byte(pdev, 0x5E, 0x01);

applied