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 <rafal.stefanowski@intel.com>
This commit is contained in:
Rafal Stefanowski 2021-11-25 09:05:09 +01:00
parent 2ce3f52d7d
commit 3d23b6d08f

View File

@ -12,7 +12,7 @@ check() {
if compile_module $cur_name "__vmalloc(0, 0);" "linux/vmalloc.h" if compile_module $cur_name "__vmalloc(0, 0);" "linux/vmalloc.h"
then then
echo $cur_name "1" >> $config_file_path 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 then
echo $cur_name "2" >> $config_file_path echo $cur_name "2" >> $config_file_path
else else