summaryrefslogtreecommitdiffstats
path: root/kernel/arch/x86/mm/pageattr-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/x86/mm/pageattr-test.c')
-rw-r--r--kernel/arch/x86/mm/pageattr-test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/arch/x86/mm/pageattr-test.c b/kernel/arch/x86/mm/pageattr-test.c
index 6629f397b..5f169d5d7 100644
--- a/kernel/arch/x86/mm/pageattr-test.c
+++ b/kernel/arch/x86/mm/pageattr-test.c
@@ -8,7 +8,9 @@
#include <linux/kthread.h>
#include <linux/random.h>
#include <linux/kernel.h>
+#include <linux/init.h>
#include <linux/mm.h>
+#include <linux/vmalloc.h>
#include <asm/cacheflush.h>
#include <asm/pgtable.h>
@@ -255,5 +257,4 @@ static int start_pageattr_test(void)
return 0;
}
-
-module_init(start_pageattr_test);
+device_initcall(start_pageattr_test);