Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 109b60f0 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras
Browse files

[POWERPC] Fix section mismatch in dart_iommu.c



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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent d56c3aaa
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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 int i;
	unsigned long tmp, base, size;
	unsigned long tmp, base, size;
@@ -313,7 +313,7 @@ static void pci_dma_bus_setup_dart(struct pci_bus *bus)
		PCI_DN(dn)->iommu_table = &iommu_table_dart;
		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;
	struct device_node *dn;