[ardb:module-combine-init-allocations 1/6] mm/execmem.c:525:17: error: implicit declaration of function 'execmem_set_direct_map_valid'

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:   971ad17aef7db54eeb51f42d5fb415093b8ce5be
commit: 199c1b576bd83e93eb428181390a4f4cadae24b5 [1/6] mm: execmem: Introduce execmem_truncate()
config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260821/[email protected]/config)
compiler: s390x-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260821/[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_free':
>> mm/execmem.c:525:17: error: implicit declaration of function 'execmem_set_direct_map_valid' [-Wimplicit-function-declaration]
     525 |                 execmem_set_direct_map_valid(vm, true);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/execmem_set_direct_map_valid +525 mm/execmem.c

   513	
   514	void execmem_free(void *ptr)
   515	{
   516		/*
   517		 * This memory may be RO, and freeing RO memory in an interrupt is not
   518		 * supported by vmalloc.
   519		 */
   520		WARN_ON(in_interrupt());
   521	
   522		if (!execmem_cache_free(ptr)) {
   523			struct vm_struct *vm = find_vm_area(ptr);
   524	
 > 525			execmem_set_direct_map_valid(vm, true);
   526			vfree(ptr);
   527		}
   528	}
   529	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.