From 3d23b6d08f51c2d4f18a009dd73f8da163d7bf9b Mon Sep 17 00:00:00 2001 From: Rafal Stefanowski Date: Thu, 25 Nov 2021 09:05:09 +0100 Subject: [PATCH] Fix kernel __vmalloc() check Use dedicated 'pgprot_t' type instead of 'struct pgprot' which is only defined for x86 architecture. Signed-off-by: Rafal Stefanowski --- configure.d/1_vmalloc.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.d/1_vmalloc.conf b/configure.d/1_vmalloc.conf index 2df9004..891c667 100644 --- a/configure.d/1_vmalloc.conf +++ b/configure.d/1_vmalloc.conf @@ -12,7 +12,7 @@ check() { if compile_module $cur_name "__vmalloc(0, 0);" "linux/vmalloc.h" then echo $cur_name "1" >> $config_file_path - elif compile_module $cur_name "struct pgprot x; __vmalloc(0, 0, x);" "linux/vmalloc.h" + elif compile_module $cur_name "pgprot_t x; __vmalloc(0, 0, x);" "linux/vmalloc.h" then echo $cur_name "2" >> $config_file_path else