Skip to contentSkip to conversation

megaraid: fix section mismatch

PATCH In review Randy Dunlap 5 participants 8 messages Jan 10, 2008 – Jan 11, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 megaraid: fix section mismatch

From: Randy Dunlap <[email protected]>

Change megaraid_pci_driver_g variable name so that it matches the modpost whitelist that allows pointers to init text/data.

WARNING: vmlinux.o(.data+0x1a8e30): Section mismatch: reference to .init.text:megaraid_probe_one (between 'megaraid_pci_driver_g' and 'class_device_attr_megaraid_mbox_app_hndl')

---
 drivers/scsi/megaraid/megaraid_mbox.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/scsi/megaraid/megaraid_mbox.c +3 -3
@@ -300,7 +300,7 @@ static struct pci_device_id pci_id_table
 MODULE_DEVICE_TABLE(pci, pci_id_table_g);
 
 
-static struct pci_driver megaraid_pci_driver_g = {
+static struct pci_driver megaraid_pci_driver = {
 	.name		= "megaraid",
 	.id_table	= pci_id_table_g,
 	.probe		= megaraid_probe_one,
@@ -394,7 +394,7 @@ megaraid_init(void)
 
 
 	// register as a PCI hot-plug driver module
-	rval = pci_register_driver(&megaraid_pci_driver_g);
+	rval = pci_register_driver(&megaraid_pci_driver);
 	if (rval < 0) {
 		con_log(CL_ANN, (KERN_WARNING
 			"megaraid: could not register hotplug support.\n"));
@@ -415,7 +415,7 @@ megaraid_exit(void)
 	con_log(CL_DLEVEL1, (KERN_NOTICE "megaraid: unloading framework\n"));
 
 	// unregister as PCI hotplug driver
-	pci_unregister_driver(&megaraid_pci_driver_g);
+	pci_unregister_driver(&megaraid_pci_driver);
 
 	return;
 }
#1 lore raw
Quoted 7 lines · On Thu, 10 Jan 2008 14:33:16 -0800 Randy Dunlap <[email protected]> wrote:

From: Randy Dunlap <[email protected]>

Change megaraid_pci_driver_g variable name so that it matches the modpost whitelist that allows pointers to init text/data.

WARNING: vmlinux.o(.data+0x1a8e30): Section mismatch: reference to .init.text:megaraid_probe_one (between 'megaraid_pci_driver_g' and 'class_device_attr_megaraid_mbox_app_hndl')

All these patches fix references to possibly-discarded sections and hence fix possibly-serious bugs. So all of them should go into 2.6.24.

I already had the qla2xxx one. It was sent to James a month ago with not atypical results. The advansys one is stuck in git-scsi-misc.

I'll give it 24 hours and then shall send these:

scsi-qla2xxx-qla_osc-section-fix.patch
megaraid-fix-section-mismatch.patch
cciss-section-mismatch.patch
x86-discover_ebda-section-mismatch.patch
tpm-infineon-section-mismatch.patch
dvb-av7110-fix-section-mismatch.patch
hostap-section-mismatch-warning.patch

in to Linus.

maintainer
#2 lore raw
Quoted 5 lines · Andrew Morton
Quoted 2 lines · On Thu, 10 Jan 2008 14:33:16 -0800 Randy Dunlap <[email protected]> wrote:

From: Randy Dunlap <[email protected]>

Quoted 8 lines
Quoted 5 lines

Change megaraid_pci_driver_g variable name so that it matches the modpost whitelist that allows pointers to init text/data.

WARNING: vmlinux.o(.data+0x1a8e30): Section mismatch: reference to .init.text:megaraid_probe_one (between 'megaraid_pci_driver_g' and 'class_device_attr_megaraid_mbox_app_hndl')

All these patches fix references to possibly-discarded sections and hence fix possibly-serious bugs. So all of them should go into 2.6.24.

Renaming a variable fixes a serious bug? It quiets a spurious warning from modpost, sure, but I hardly think that's -rc7 material.

James

#3 lore raw
Quoted 9 lines · James Bottomley
Quoted 8 lines · Andrew Morton
Quoted 5 lines · On Thu, 10 Jan 2008 14:33:16 -0800 Randy Dunlap <[email protected]> wrote:

From: Randy Dunlap <[email protected]>

Change megaraid_pci_driver_g variable name so that it matches the modpost whitelist that allows pointers to init text/data.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

WARNING: vmlinux.o(.data+0x1a8e30): Section mismatch: reference to .init.text:megaraid_probe_one (between 'megaraid_pci_driver_g' and 'class_device_attr_megaraid_mbox_app_hndl')

All these patches fix references to possibly-discarded sections and hence fix possibly-serious bugs. So all of them should go into 2.6.24.

Renaming a variable fixes a serious bug? It quiets a spurious warning from modpost, sure, but I hardly think that's -rc7 material.

Right. The variable-renaming patches are for:

tpm_infineon
hostap
av7110
megaraid

The other 4 are more serious.

Signature · 1 line
~Randy
#4 lore raw
In reply to James Bottomley
Quoted 9 lines · On Thu, 10 Jan 2008 22:45:35 -0600 James Bottomley…
Quoted 8 lines · Andrew Morton
Quoted 5 lines · On Thu, 10 Jan 2008 14:33:16 -0800 Randy Dunlap <[email protected]> wrote:

From: Randy Dunlap <[email protected]>

Change megaraid_pci_driver_g variable name so that it matches the modpost whitelist that allows pointers to init text/data.

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

WARNING: vmlinux.o(.data+0x1a8e30): Section mismatch: reference to .init.text:megaraid_probe_one (between 'megaraid_pci_driver_g' and 'class_device_attr_megaraid_mbox_app_hndl')

All these patches fix references to possibly-discarded sections and hence fix possibly-serious bugs. So all of them should go into 2.6.24.

Renaming a variable fixes a serious bug? It quiets a spurious warning from modpost, sure, but I hardly think that's -rc7 material.

Rather than unerringly zooming in on the vanishingly trivial: will you be merging the advansys and qla2xx bugfixes or would you like me to?

maintainer
#5 lore raw
Quoted 17 lines · Andrew Morton
Quoted 15 lines · On Thu, 10 Jan 2008 22:45:35 -0600 James Bottomley…
Quoted 13 lines · Andrew Morton
Quoted 7 lines · On Thu, 10 Jan 2008 14:33:16 -0800 Randy Dunlap <[email protected]> wrote:

From: Randy Dunlap <[email protected]>

Change megaraid_pci_driver_g variable name so that it matches the modpost whitelist that allows pointers to init text/data.

WARNING: vmlinux.o(.data+0x1a8e30): Section mismatch: reference to .init.text:megaraid_probe_one (between 'megaraid_pci_driver_g' and 'class_device_attr_megaraid_mbox_app_hndl')

All these patches fix references to possibly-discarded sections and hence fix possibly-serious bugs. So all of them should go into 2.6.24.

Quoted 6 lines
Quoted 3 lines

Renaming a variable fixes a serious bug? It quiets a spurious warning from modpost, sure, but I hardly think that's -rc7 material.

Rather than unerringly zooming in on the vanishingly trivial: will you be merging the advansys and qla2xx bugfixes or would you like me to?

You can ... looking at the advansys one, the isa driver remove will always oops without the fix. The qlogic one is less serious.

James

#6 lore raw
In reply to Randy Dunlap

Ack.

--Sumant

-----Original Message-----
From: Randy Dunlap [mailto:[email protected]]
Sent: Thursday, January 10, 2008 2:33 PM
To: DL-MegaRAID Linux; scsi
Cc: jejb; akpm; samr
Subject: [PATCH] megaraid: fix section mismatch

From: Randy Dunlap <[email protected]>

Change megaraid_pci_driver_g variable name so that it matches the modpost whitelist that allows pointers to init text/data.

WARNING: vmlinux.o(.data+0x1a8e30): Section mismatch: reference to .init.text:megaraid_probe_one (between 'megaraid_pci_driver_g' and 'class_device_attr_megaraid_mbox_app_hndl')

---
 drivers/scsi/megaraid/megaraid_mbox.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/scsi/megaraid/megaraid_mbox.c +0 -0
@@ -300,7 +300,7 @@ static struct pci_device_id pci_id_table

MODULE_DEVICE_TABLE(pci, pci_id_table_g);

-static struct pci_driver megaraid_pci_driver_g = { +static struct pci_driver megaraid_pci_driver = {
.name = "megaraid",
.id_table = pci_id_table_g,
.probe = megaraid_probe_one,
@@ -394,7 +394,7 @@ megaraid_init(void)

// register as a PCI hot-plug driver module
- rval = pci_register_driver(&megaraid_pci_driver_g);
+ rval = pci_register_driver(&megaraid_pci_driver);
if (rval < 0) {
con_log(CL_ANN, (KERN_WARNING
"megaraid: could not register hotplug
support.\n")); @@ -415,7 +415,7 @@ megaraid_exit(void)
con_log(CL_DLEVEL1, (KERN_NOTICE "megaraid: unloading
framework\n"));

// unregister as PCI hotplug driver
- pci_unregister_driver(&megaraid_pci_driver_g);
+ pci_unregister_driver(&megaraid_pci_driver);

return;
}

Acked-by on v1 1/1
#7 lore raw
In reply to Randy Dunlap
Quoted 8 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Change megaraid_pci_driver_g variable name so that it matches the modpost whitelist that allows pointers to init text/data.

WARNING: vmlinux.o(.data+0x1a8e30): Section mismatch: reference to .init.text:megaraid_probe_one (between 'megaraid_pci_driver_g' and 'class_device_attr_megaraid_mbox_app_hndl')