[PATCH] [POWERPC] Fix section mismatch in pasemi/iommu.c

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE6940d

2 messages, 2 authors, 2007-08-15 · open the first message on its own page

[PATCH] [POWERPC] Fix section mismatch in pasemi/iommu.c

From: Stephen Rothwell <hidden>
Date: 2007-08-15 10:58:25

These functions are only called by __init functions.

WARNING: vmlinux.o(.text+0x56aa0): Section mismatch: reference to .init.text:.lmb_alloc (between '.iob_init' and '.iommu_init_early_pasemi')

Signed-off-by: Stephen Rothwell <redacted>
---
 arch/powerpc/platforms/pasemi/iommu.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
diff --git a/arch/powerpc/platforms/pasemi/iommu.c b/arch/powerpc/platforms/pasemi/iommu.c
index f33b21b..c910ec9 100644
--- a/arch/powerpc/platforms/pasemi/iommu.c
+++ b/arch/powerpc/platforms/pasemi/iommu.c
@@ -187,7 +187,7 @@ static void pci_dma_dev_setup_pasemi(struct pci_dev *dev)
 static void pci_dma_bus_setup_null(struct pci_bus *b) { }
 static void pci_dma_dev_setup_null(struct pci_dev *d) { }
 
-int iob_init(struct device_node *dn)
+int __init iob_init(struct device_node *dn)
 {
 	unsigned long tmp;
 	u32 regword;
@@ -233,7 +233,7 @@ int iob_init(struct device_node *dn)
 
 
 /* These are called very early. */
-void iommu_init_early_pasemi(void)
+void __init iommu_init_early_pasemi(void)
 {
 	int iommu_off;
 
-- 
1.5.2.4

Re: [PATCH] [POWERPC] Fix section mismatch in pasemi/iommu.c

From: Olof Johansson <hidden>
Date: 2007-08-15 15:23:58

On Wed, Aug 15, 2007 at 08:58:23PM +1000, Stephen Rothwell wrote:
These functions are only called by __init functions.

WARNING: vmlinux.o(.text+0x56aa0): Section mismatch: reference to .init.text:.lmb_alloc (between '.iob_init' and '.iommu_init_early_pasemi')
Thanks! It was drowning in the other warnings, I'd never noticed it.

Signed-off-by: Stephen Rothwell <redacted>
Acked-by: Olof Johansson <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help