From: kernel test robot <lkp@intel.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [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'?
Date: Tue, 19 Sep 2023 19:27:28 +0800 [thread overview]
Message-ID: <202309191953.zsfUko7S-lkp@intel.com> (raw)
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
reply other threads:[~2023-09-19 11:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202309191953.zsfUko7S-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).