[ardb:module-combine-init-allocations 1/8] mm/execmem.c:91:33: error: implicit declaration of function 'get_vm_area_page_order'; did you mean 'get_vm_area_caller'?
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git module-combine-init-allocations head: a598b33b1d60eb215a71876eaf9e694fa22e48ba commit: 727fc3c108b070521a093337b930b8a3f8eeaf73 [1/8] mm: execmem: Pass an offset to execmem_set_direct_map_valid() config: sh-randconfig-001-20260822 (https://download.01.org/0day-ci/archive/20260822/[email protected]/config) compiler: sh4-linux-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260822/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): mm/execmem.c: In function 'execmem_set_direct_map_valid': >> mm/execmem.c:91:33: error: implicit declaration of function 'get_vm_area_page_order'; did you mean 'get_vm_area_caller'? [-Wimplicit-function-declaration] 91 | unsigned int nr = (1 << get_vm_area_page_order(vm)); | ^~~~~~~~~~~~~~~~~~~~~~ | get_vm_area_caller mm/execmem.c: At top level: mm/execmem.c:88:12: warning: 'execmem_set_direct_map_valid' defined but not used [-Wunused-function] 88 | static int execmem_set_direct_map_valid(struct vm_struct *vm, bool valid, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +91 mm/execmem.c 87 88 static int execmem_set_direct_map_valid(struct vm_struct *vm, bool valid, 89 int offset) 90 { > 91 unsigned int nr = (1 << get_vm_area_page_order(vm)); 92 unsigned int updated = 0; 93 int err = 0; 94 95 if (offset % nr) 96 return -EINVAL; 97 98 for (int i = offset >> PAGE_SHIFT; i < vm->nr_pages; i += nr) { 99 err = set_direct_map_valid_noflush(vm->pages[i], nr, valid); 100 if (err) 101 goto err_restore; 102 updated += nr; 103 } 104 105 return 0; 106 107 err_restore: 108 for (int i = offset >> PAGE_SHIFT; i < updated; i += nr) 109 set_direct_map_valid_noflush(vm->pages[i], nr, !valid); 110 111 return err; 112 } 113 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki