powerpc/iommu: fix modpost section mismatch error in allocate_dart()
PATCH 1/1 powerpc/iommu: fix modpost section mismatch error in allocate_dart()
From: Jackie Liu <[email protected]>
allocate_dart is used in dart_init, and dart_init is in the __init section, we should also put the allocate_dart function in the __init section.
Reported-by k2ci <[email protected]>
Signed-off-by Jackie Liu <[email protected]>
--- arch/powerpc/sysdev/dart_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/sysdev/dart_iommu.c +1 -1
@@ -226,7 +226,7 @@ static void dart_free(struct iommu_table *tbl, long index, long npages)dart_cache_sync (orig_dp, orig_npages); } -static void allocate_dart (void ) +static void __init allocate_dart (void ) {unsigned long tmp;
Signature · 1 line
2.25.1