Skip to contentSkip to conversation

scx200_acb: fix section mismatch warning

PATCH In review Randy.Dunlap 4 participants 7 messages May 25, 2006

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

PATCH 1/1 scx200_acb: fix section mismatch warning

From: Randy Dunlap <[email protected]>

Fix section mismatch warning reported by İsmail Dönmez:
WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference to .init.text: from .text after 'scx200_add_cs553x' (at offset 0x528)

---
 drivers/i2c/busses/scx200_acb.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/scx200_acb.c +1 -1
@@ -491,7 +491,7 @@ static struct pci_device_id divil_pci[] 
 
 #define MSR_LBAR_SMB		0x5140000B
 
-static int scx200_add_cs553x(void)
+static __init int scx200_add_cs553x(void)
 {
 	u32	low, hi;
 	u32	smb_base;

---

#1 lore raw

Randy.Dunlap wrote On 25-05-2006 20:01:

Quoted 15 lines

From: Randy Dunlap <[email protected]>

Fix section mismatch warning reported by İsmail Dönmez:
WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference to .init.text: from .text after 'scx200_add_cs553x' (at offset 0x528)

---
 drivers/i2c/busses/scx200_acb.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/scx200_acb.c +0 -0
@@ -491,7 +491,7 @@ static struct pci_device_id divil_pci[] 
 

drivers/i2c/busses/scx200_acb.c static struct pci_device_id divil_pci[]

Quoted 10 lines
drivers/i2c/busses/scx200_acb.c +1 -2
 #define MSR_LBAR_SMB		0x5140000B
 
-static int scx200_add_cs553x(void)
+static __init int scx200_add_cs553x(void)
 {
 	u32	low, hi;
 	u32	smb_base;
 
 
---

Ack, this fixes the warning for me.

Regards,
ismail

#2 lore raw
In reply to Randy.Dunlap

Hi Randy, all,

Quoted 15 lines

From: Randy Dunlap <[email protected]>

Fix section mismatch warning reported by İsmail Dönmez:
WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference to .init.text: from .text after 'scx200_add_cs553x' (at offset 0x528)

---
 drivers/i2c/busses/scx200_acb.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

drivers/i2c/busses/scx200_acb.c static struct pci_device_id divil_pci[] · line 497

Quoted 8 lines
drivers/i2c/busses/scx200_acb.c +1 -1
@@ -491,7 +491,7 @@ static struct pci_device_id divil_pci[] 
 
 #define MSR_LBAR_SMB		0x5140000B
 
-static int scx200_add_cs553x(void)
+static __init int scx200_add_cs553x(void)
 {
 	u32	low, hi;
 	u32	smb_base;

Correct, I sent exactly the same patch to the the lm-sensors list and Greg KH yesterday:
http://lists.lm-sensors.org/pipermail/lm-sensors/2006-May/016213.html

So this one is

Note that the section mismatch is harmless here (we have a non-__init function sandwiched between two __init functions) but nevertheless this kind of warning is never welcome in a final kernel release so let's get the fix merged now.

Andrew, can you please push this to Linus?

Thanks,

Signature · 1 line
Jean Delvare
#3 lore raw
Quoted 15 lines · Jean Delvare

drivers/i2c/busses/scx200_acb.c static struct pci_device_id divil_pci[] · line 497

Quoted 7 lines
drivers/i2c/busses/scx200_acb.c +1 -1
-static int scx200_add_cs553x(void)
+static __init int scx200_add_cs553x(void)
 {
 	u32	low, hi;
 	u32	smb_base;

Correct, I sent exactly the same patch to the the lm-sensors list and Greg KH yesterday:
http://lists.lm-sensors.org/pipermail/lm-sensors/2006-May/016213.html

So this one is
Signed-off-by: Jean Delvare <khali at linux-fr.org>

Quoted 6 lines

Note that the section mismatch is harmless here (we have a non-__init function sandwiched between two __init functions) but nevertheless this kind of warning is never welcome in a final kernel release so let's get the fix merged now.

Andrew, can you please push this to Linus?

yup, I'll send that later on today. My current 2.6.17 queue is:

s390-fix-typo-in-stop_hz_timer.patch add-cmspar-to-termbitsh-for-powerpc-and-alpha.patch x86-wire-up-vmsplice-syscall.patch ads7846-conversion-accuracy.patch affs-possible-null-pointer-dereference-in-affs_rename.patch powermac-force-only-suspend-to-disk-to-be-valid.patch s3c24xx-fix-spi-driver-with-config_pm.patch scx200_acb-fix-section-mismatch-warning.patch

#4 lore raw

Andrew Morton wrote On 25-05-2006 21:06:

Quoted 24 lines
Quoted 12 lines · Jean Delvare

drivers/i2c/busses/scx200_acb.c static struct pci_device_id divil_pci[] · line 497

Quoted 6 lines
drivers/i2c/busses/scx200_acb.c +1 -1
-static int scx200_add_cs553x(void)
+static __init int scx200_add_cs553x(void)
 {
 	u32	low, hi;
 	u32	smb_base;

Correct, I sent exactly the same patch to the the lm-sensors list and Greg KH yesterday:
http://lists.lm-sensors.org/pipermail/lm-sensors/2006-May/016213.html

So this one is

Quoted 8 lines

Note that the section mismatch is harmless here (we have a non-__init function sandwiched between two __init functions) but nevertheless this kind of warning is never welcome in a final kernel release so let's get the fix merged now.

Andrew, can you please push this to Linus?

yup, I'll send that later on today. My current 2.6.17 queue is:

Quoted 8 lines

s390-fix-typo-in-stop_hz_timer.patch add-cmspar-to-termbitsh-for-powerpc-and-alpha.patch x86-wire-up-vmsplice-syscall.patch ads7846-conversion-accuracy.patch affs-possible-null-pointer-dereference-in-affs_rename.patch powermac-force-only-suspend-to-disk-to-be-valid.patch s3c24xx-fix-spi-driver-with-config_pm.patch scx200_acb-fix-section-mismatch-warning.patch

Is there a chance of queing Randy's other mismatch fixes? It would be nice to eliminate them for the final release.

Regards,
ismail

#5 lore raw
Quoted 34 lines · On Thu, 25 May 2006 21:10:28 +0300 İsmail Dönmez wrote:

Andrew Morton wrote On 25-05-2006 21:06:

Quoted 24 lines
Quoted 12 lines · Jean Delvare

drivers/i2c/busses/scx200_acb.c static struct pci_device_id divil_pci[] · line 497

Quoted 6 lines
drivers/i2c/busses/scx200_acb.c +1 -1
-static int scx200_add_cs553x(void)
+static __init int scx200_add_cs553x(void)
 {
 	u32	low, hi;
 	u32	smb_base;

Correct, I sent exactly the same patch to the the lm-sensors list and Greg KH yesterday:
http://lists.lm-sensors.org/pipermail/lm-sensors/2006-May/016213.html

So this one is

Quoted 8 lines

Note that the section mismatch is harmless here (we have a non-__init function sandwiched between two __init functions) but nevertheless this kind of warning is never welcome in a final kernel release so let's get the fix merged now.

Andrew, can you please push this to Linus?

yup, I'll send that later on today. My current 2.6.17 queue is:

Quoted 8 lines

s390-fix-typo-in-stop_hz_timer.patch add-cmspar-to-termbitsh-for-powerpc-and-alpha.patch x86-wire-up-vmsplice-syscall.patch ads7846-conversion-accuracy.patch affs-possible-null-pointer-dereference-in-affs_rename.patch powermac-force-only-suspend-to-disk-to-be-valid.patch s3c24xx-fix-spi-driver-with-config_pm.patch scx200_acb-fix-section-mismatch-warning.patch

Quoted 2 lines

Is there a chance of queing Randy's other mismatch fixes? It would be nice to eliminate them for the final release.

Well this one got quick review/feedback/ack by maintainer. The others need something like that too....

---
~Randy

#6 lore raw
In reply to İsmail Dönmez
Quoted 35 lines · __smail Dönmez

Andrew Morton wrote On 25-05-2006 21:06:

Quoted 24 lines
Quoted 12 lines · Jean Delvare

drivers/i2c/busses/scx200_acb.c static struct pci_device_id divil_pci[] · line 497

Quoted 6 lines
drivers/i2c/busses/scx200_acb.c +1 -1
-static int scx200_add_cs553x(void)
+static __init int scx200_add_cs553x(void)
 {
 	u32	low, hi;
 	u32	smb_base;

Correct, I sent exactly the same patch to the the lm-sensors list and Greg KH yesterday:
http://lists.lm-sensors.org/pipermail/lm-sensors/2006-May/016213.html

So this one is

Quoted 8 lines

Note that the section mismatch is harmless here (we have a non-__init function sandwiched between two __init functions) but nevertheless this kind of warning is never welcome in a final kernel release so let's get the fix merged now.

Andrew, can you please push this to Linus?

yup, I'll send that later on today. My current 2.6.17 queue is:

Quoted 8 lines

s390-fix-typo-in-stop_hz_timer.patch add-cmspar-to-termbitsh-for-powerpc-and-alpha.patch x86-wire-up-vmsplice-syscall.patch ads7846-conversion-accuracy.patch affs-possible-null-pointer-dereference-in-affs_rename.patch powermac-force-only-suspend-to-disk-to-be-valid.patch s3c24xx-fix-spi-driver-with-config_pm.patch scx200_acb-fix-section-mismatch-warning.patch

Quoted 3 lines

Is there a chance of queing Randy's other mismatch fixes? It would be nice to eliminate them for the final release.

spose so. At least, the ones which fix bugs.