--- zzzz-none-000/linux-3.10.107/arch/x86/mm/pageattr-test.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/x86/mm/pageattr-test.c 2021-02-04 17:41:59.000000000 +0000 @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -36,7 +37,7 @@ static int pte_testbit(pte_t pte) { - return pte_flags(pte) & _PAGE_UNUSED1; + return pte_flags(pte) & _PAGE_SOFTW1; } struct split_state { @@ -256,5 +257,4 @@ return 0; } - -module_init(start_pageattr_test); +device_initcall(start_pageattr_test);