linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 6331/6333] arch/x86/um/../kernel/module.c:54:50: error: implicit declaration of function 'kaslr_enabled'; did you mean 'kasan_enabled'?
@ 2023-09-19 11:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-19 11:27 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: oe-kbuild-all, Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   29e400e3ea486bf942b214769fc9778098114113
commit: 12633d6797967f5a8c8d93c649557cba7cf12252 [6331/6333] Revert "arch: make execmem setup available regardless of CONFIG_MODULES"
config: um-defconfig (https://download.01.org/0day-ci/archive/20230919/202309191953.zsfUko7S-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230919/202309191953.zsfUko7S-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309191953.zsfUko7S-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/x86/um/../kernel/module.c: In function 'execmem_arch_params':
>> arch/x86/um/../kernel/module.c:54:50: error: implicit declaration of function 'kaslr_enabled'; did you mean 'kasan_enabled'? [-Werror=implicit-function-declaration]
      54 |         if (IS_ENABLED(CONFIG_RANDOMIZE_BASE) && kaslr_enabled())
         |                                                  ^~~~~~~~~~~~~
         |                                                  kasan_enabled
   cc1: some warnings being treated as errors


vim +54 arch/x86/um/../kernel/module.c

    48	
    49	struct execmem_params __init *execmem_arch_params(void)
    50	{
    51		unsigned long module_load_offset = 0;
    52		unsigned long start;
    53	
  > 54		if (IS_ENABLED(CONFIG_RANDOMIZE_BASE) && kaslr_enabled())
    55			module_load_offset =
    56				get_random_u32_inclusive(1, 1024) * PAGE_SIZE;
    57	
    58		start = MODULES_VADDR + module_load_offset;
    59		execmem_params.ranges[EXECMEM_DEFAULT].start = start;
    60		execmem_params.ranges[EXECMEM_DEFAULT].end = MODULES_END;
    61		execmem_params.ranges[EXECMEM_DEFAULT].pgprot = PAGE_KERNEL;
    62	
    63		return &execmem_params;
    64	}
    65	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-19 11:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-19 11:27 [linux-next:master 6331/6333] arch/x86/um/../kernel/module.c:54:50: error: implicit declaration of function 'kaslr_enabled'; did you mean 'kasan_enabled'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).