@@ -26,7 +26,7 @@ static struct execmem_info default_execmem_info __ro_after_init;
2626
2727#ifdef CONFIG_MMU
2828static void * execmem_vmalloc (struct execmem_range * range , size_t size ,
29- pgprot_t pgprot , vm_flags_t vm_flags )
29+ pgprot_t pgprot , unsigned long vm_flags )
3030{
3131 bool kasan = range -> flags & EXECMEM_KASAN_SHADOW ;
3232 gfp_t gfp_flags = GFP_KERNEL | __GFP_NOWARN ;
@@ -82,7 +82,7 @@ struct vm_struct *execmem_vmap(size_t size)
8282}
8383#else
8484static void * execmem_vmalloc (struct execmem_range * range , size_t size ,
85- pgprot_t pgprot , vm_flags_t vm_flags )
85+ pgprot_t pgprot , unsigned long vm_flags )
8686{
8787 return vmalloc (size );
8888}
@@ -283,7 +283,7 @@ static void *__execmem_cache_alloc(struct execmem_range *range, size_t size)
283283
284284static int execmem_cache_populate (struct execmem_range * range , size_t size )
285285{
286- vm_flags_t vm_flags = VM_ALLOW_HUGE_VMAP ;
286+ unsigned long vm_flags = VM_ALLOW_HUGE_VMAP ;
287287 struct vm_struct * vm ;
288288 size_t alloc_size ;
289289 int err = - ENOMEM ;
@@ -465,7 +465,7 @@ void *execmem_alloc(enum execmem_type type, size_t size)
465465{
466466 struct execmem_range * range = & execmem_info -> ranges [type ];
467467 bool use_cache = range -> flags & EXECMEM_ROX_CACHE ;
468- vm_flags_t vm_flags = VM_FLUSH_RESET_PERMS ;
468+ unsigned long vm_flags = VM_FLUSH_RESET_PERMS ;
469469 pgprot_t pgprot = range -> pgprot ;
470470 void * p = NULL ;
471471
0 commit comments