aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/msi_bitmap.c
diff options
context:
space:
mode:
authorDenis Kirjanov <kda@linux-powerpc.org>2015-10-21 14:29:13 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2015-10-28 12:08:33 +0900
commitccde64b51b33821159d52b0940fb21869bfdb316 (patch)
treef8256722cb1bb49d18d0ed5d30d4eb2ed583217f /arch/powerpc/sysdev/msi_bitmap.c
parentpowerpc/prom: Use of_get_next_parent() in of_get_ibm_chip_id() (diff)
downloadlinux-dev-ccde64b51b33821159d52b0940fb21869bfdb316.tar.xz
linux-dev-ccde64b51b33821159d52b0940fb21869bfdb316.zip
powerpc/msi: Fix section mismatch warning in msi_bitmap_alloc()
Building with CONFIG_DEBUG_SECTION_MISMATCH gives the following warning: The function .msi_bitmap_alloc() references the function __init .memblock_virt_alloc_try_nid(). Memory allocation in msi_bitmap_alloc() uses either slab allocator or memblock boot time allocator depending on slab_is_available(). So the section mismatch warning is correct, but in practice there is no bug so mark msi_bitmap_alloc() as __init_refok. Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org> [mpe: Flesh out change log a bit] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/sysdev/msi_bitmap.c')
-rw-r--r--arch/powerpc/sysdev/msi_bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/msi_bitmap.c b/arch/powerpc/sysdev/msi_bitmap.c
index 1a826f3b4424..ed5234ed8d3f 100644
--- a/arch/powerpc/sysdev/msi_bitmap.c
+++ b/arch/powerpc/sysdev/msi_bitmap.c
@@ -112,7 +112,7 @@ int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp)
return 0;
}
-int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count,
+int __init_refok msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count,
struct device_node *of_node)
{
int size;