Commit 097529f3 authored by Michael Ellerman's avatar Michael Ellerman Committed by Benjamin Herrenschmidt

powerpc/msi: Mark the MSI bitmap selftest code as __init

Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent ebf0f334
...@@ -141,7 +141,7 @@ void msi_bitmap_free(struct msi_bitmap *bmp) ...@@ -141,7 +141,7 @@ void msi_bitmap_free(struct msi_bitmap *bmp)
#define check(x) \ #define check(x) \
if (!(x)) printk("msi_bitmap: test failed at line %d\n", __LINE__); if (!(x)) printk("msi_bitmap: test failed at line %d\n", __LINE__);
void test_basics(void) void __init test_basics(void)
{ {
struct msi_bitmap bmp; struct msi_bitmap bmp;
int i, size = 512; int i, size = 512;
...@@ -186,7 +186,7 @@ void test_basics(void) ...@@ -186,7 +186,7 @@ void test_basics(void)
kfree(bmp.bitmap); kfree(bmp.bitmap);
} }
void test_of_node(void) void __init test_of_node(void)
{ {
u32 prop_data[] = { 10, 10, 25, 3, 40, 1, 100, 100, 200, 20 }; u32 prop_data[] = { 10, 10, 25, 3, 40, 1, 100, 100, 200, 20 };
const char *expected_str = "0-9,20-24,28-39,41-99,220-255"; const char *expected_str = "0-9,20-24,28-39,41-99,220-255";
...@@ -234,7 +234,7 @@ void test_of_node(void) ...@@ -234,7 +234,7 @@ void test_of_node(void)
kfree(bmp.bitmap); kfree(bmp.bitmap);
} }
int msi_bitmap_selftest(void) int __init msi_bitmap_selftest(void)
{ {
printk(KERN_DEBUG "Running MSI bitmap self-tests ...\n"); printk(KERN_DEBUG "Running MSI bitmap self-tests ...\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment