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:
parent
2ce3f52d7d
commit
3d23b6d08f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user