Skip to content

Commit

Permalink
[POWERPC] Fix section mismatch in pasemi/iommu.c
Browse files Browse the repository at this point in the history
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 <sfr@canb.auug.org.au>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Aug 17, 2007
1 parent 124d795 commit 750d1d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/pasemi/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 750d1d1

Please sign in to comment.