Skip to contentSkip to conversation

powerpc: Fix Section mismatch warnings

PATCH In review Li Yang 2 participants 4 messages May 14, 2007 – May 16, 2007

Subsystems (2)
lore
Share & tools
lore

Li Yang

author
#0 lore raw

PATCH 2/2 powerpc: Fix Section mismatch warnings

This patch fix the following Section mismatch warnings in powerpc code.

WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed2) and 'gg2_read_config'
WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed6) and 'gg2_read_config'
WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.text:note_scsi_host from __ksymtab between '__ksymtab_note_scsi_host' (at offset 0x8) and '__ksymtab_sys_ctrler'

---

arch/powerpc/platforms/chrp/pegasos_eth.c |    2 +-
arch/powerpc/platforms/powermac/setup.c   |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/chrp/pegasos_eth.c +0 -0
index 7104567..5c9f135 100644
@@ -169,7 +169,7 @@ static int Enable_SRAM(void)
 

/***********/
/***********/
-int mv643xx_eth_add_pds(void)
+int __init mv643xx_eth_add_pds(void)

{
	int ret = 0;
	static struct pci_device_id pci_marvell_mv64360[] = {
arch/powerpc/platforms/powermac/setup.c +0 -0
index a410bc7..07b1c4e 100644
@@ -384,7 +384,7 @@ int boot_part;

static dev_t boot_dev;

#ifdef CONFIG_SCSI
-void __init note_scsi_host(struct device_node *node, void *host) +void note_scsi_host(struct device_node *node, void *host)

{
	int l;
	char *p;
#1 lore raw
Quoted 18 lines · Li Yang

This patch fix the following Section mismatch warnings in powerpc code.

WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed2) and 'gg2_read_config'
WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed6) and 'gg2_read_config'
WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.text:note_scsi_host from __ksymtab between '__ksymtab_note_scsi_host' (at offset 0x8) and '__ksymtab_sys_ctrler'

---

arch/powerpc/platforms/chrp/pegasos_eth.c |    2 +-
arch/powerpc/platforms/powermac/setup.c   |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/chrp/pegasos_eth.c +0 -0
index 7104567..5c9f135 100644

arch/powerpc/platforms/chrp/pegasos_eth.c static int Enable_SRAM(void) · line 171

Quoted 4 lines
arch/powerpc/platforms/chrp/pegasos_eth.c +1 -1
@@ -169,7 +169,7 @@ static int Enable_SRAM(void)
 /***********/
 /***********/
-int mv643xx_eth_add_pds(void)
+int __init mv643xx_eth_add_pds(void)

it should probably be static as well.

Quoted 22 lines
arch/powerpc/platforms/chrp/pegasos_eth.c +0 -0
 {
 	int ret = 0;
 	static struct pci_device_id pci_marvell_mv64360[] = {
arch/powerpc/platforms/powermac/setup.c +1 -2
index a410bc7..07b1c4e 100644
@@ -384,7 +384,7 @@ int boot_part;
 static dev_t boot_dev;
 #ifdef CONFIG_SCSI
-void __init note_scsi_host(struct device_node *node, void *host)
+void note_scsi_host(struct device_node *node, void *host)
 {
 	int l;
 	char *p;
 
 
-

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
In reply to Li Yang
Quoted 7 lines · Li Yang

This patch fix the following Section mismatch warnings in powerpc code.

WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed2) and 'gg2_read_config'
WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed6) and 'gg2_read_config'
WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.text:note_scsi_host from __ksymtab between '__ksymtab_note_scsi_host' (at offset 0x8) and '__ksymtab_sys_ctrler'

Quoted 5 lines
---
 arch/powerpc/platforms/chrp/pegasos_eth.c |    2 +-
 arch/powerpc/platforms/powermac/setup.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Did you change anything?

- k

Quoted 32 lines
arch/powerpc/platforms/chrp/pegasos_eth.c +1 -1
index 7104567..5c9f135 100644
@@ -169,7 +169,7 @@ static int Enable_SRAM(void)
 
 /***********/
 /***********/
-int mv643xx_eth_add_pds(void)
+int __init mv643xx_eth_add_pds(void)
 {
 	int ret = 0;
 	static struct pci_device_id pci_marvell_mv64360[] = {
arch/powerpc/platforms/powermac/setup.c +1 -1
index a410bc7..07b1c4e 100644
@@ -384,7 +384,7 @@ int boot_part;
 static dev_t boot_dev;
 
 #ifdef CONFIG_SCSI
-void __init note_scsi_host(struct device_node *node, void *host)
+void note_scsi_host(struct device_node *node, void *host)
 {
 	int l;
 	char *p;

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

#3 lore raw
Quoted 22 lines

-----Original Message-----
From: Kumar Gala [mailto:[email protected]]
Sent: Tuesday, May 15, 2007 10:07 PM
To: Li Yang-r58472
Cc: Paul; [email protected]; Linux Kernel
Subject: Re: [PATCH 2/2] powerpc: Fix Section mismatch warnings =20
=20
On May 14, 2007, at 5:59 AM, Li Yang wrote:
=20

Quoted 12 lines

This patch fix the following Section mismatch warnings in powerpc code.

WARNING: arch/powerpc/platforms/built-in.o - Section mismatch:
reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed2) and 'gg2_read_config'
WARNING: arch/powerpc/platforms/built-in.o - Section mismatch:
reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed6) and 'gg2_read_config'
WARNING: arch/powerpc/platforms/built-in.o - Section mismatch:
reference to .init.text:note_scsi_host from __ksymtab between '__ksymtab_note_scsi_host' (at offset 0x8) and

'__ksymtab_sys_ctrler'

Quoted 8 lines
Quoted 6 lines
---
 arch/powerpc/platforms/chrp/pegasos_eth.c |    2 +-
 arch/powerpc/platforms/powermac/setup.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

=20
Did you change anything?

Nothing yet. I think it's a delay of mail system.

- Leo