Skip to content

Commit

Permalink
[POWERPC] Fix section mismatch in dart_iommu.c
Browse files Browse the repository at this point in the history
These functions are only called from __init functions.

WARNING: vmlinux.o(.text+0x398f4): Section mismatch: reference to .init.text:.lmb_alloc (between '.iommu_init_early_dart' and '.pci_dma_bus_setup_dart')

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Aug 17, 2007
1 parent d56c3aa commit 109b60f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/sysdev/dart_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static void dart_free(struct iommu_table *tbl, long index, long npages)
}


static int dart_init(struct device_node *dart_node)
static int __init dart_init(struct device_node *dart_node)
{
unsigned int i;
unsigned long tmp, base, size;
Expand Down Expand Up @@ -313,7 +313,7 @@ static void pci_dma_bus_setup_dart(struct pci_bus *bus)
PCI_DN(dn)->iommu_table = &iommu_table_dart;
}

void iommu_init_early_dart(void)
void __init iommu_init_early_dart(void)
{
struct device_node *dn;

Expand Down

0 comments on commit 109b60f

Please sign in to comment.