Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Michael Ellerman and committed by
Benjamin Herrenschmidt
097529f3 ebf0f334

+3 -3
+3 -3
arch/powerpc/sysdev/msi_bitmap.c
··· 141 141 #define check(x) \ 142 142 if (!(x)) printk("msi_bitmap: test failed at line %d\n", __LINE__); 143 143 144 - void test_basics(void) 144 + void __init test_basics(void) 145 145 { 146 146 struct msi_bitmap bmp; 147 147 int i, size = 512; ··· 186 186 kfree(bmp.bitmap); 187 187 } 188 188 189 - void test_of_node(void) 189 + void __init test_of_node(void) 190 190 { 191 191 u32 prop_data[] = { 10, 10, 25, 3, 40, 1, 100, 100, 200, 20 }; 192 192 const char *expected_str = "0-9,20-24,28-39,41-99,220-255"; ··· 234 234 kfree(bmp.bitmap); 235 235 } 236 236 237 - int msi_bitmap_selftest(void) 237 + int __init msi_bitmap_selftest(void) 238 238 { 239 239 printk(KERN_DEBUG "Running MSI bitmap self-tests ...\n"); 240 240