[tglx-devel:timers/cleanup 3/59] arch/s390/mm/init.c:301:38: error: implicit declaration of function 'get_random_u32_inclusive'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild
Message-ID <[email protected]>
:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: [email protected]
CC: [email protected]
TO: Thomas Gleixner <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/cleanup
head:   0ad363c8e014568032d53fe2c7ab288de68373f4
commit: 7685fb5c8fe1aebd1a2202b2267a79d5b6775fd2 [3/59] nodemask: Include find.h instead of random.h
:::::: branch date: 16 hours ago
:::::: commit date: 16 hours ago
config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260712/[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/20260712/[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/r/[email protected]/

All errors (new ones prefixed by >>):

   arch/s390/mm/init.c: In function 'execmem_arch_setup':
>> arch/s390/mm/init.c:301:38: error: implicit declaration of function 'get_random_u32_inclusive' [-Wimplicit-function-declaration]
     301 |                 module_load_offset = get_random_u32_inclusive(1, 1024) * PAGE_SIZE;
         |                                      ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/get_random_u32_inclusive +301 arch/s390/mm/init.c

0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  294) 
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  295) struct execmem_info __init *execmem_arch_setup(void)
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  296) {
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  297) 	unsigned long module_load_offset = 0;
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  298) 	unsigned long start;
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  299) 
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05  300) 	if (kaslr_enabled())
0cc2dc4902f425 Mike Rapoport (IBM  2024-05-05 @301) 		module_load_offset = get_random_u32_inclusive(1, 1024) * PAGE_SIZE;

:::::: The code at line 301 was first introduced by commit
:::::: 0cc2dc4902f425e346d46deeea2352d9fba75375 arch: make execmem setup available regardless of CONFIG_MODULES

:::::: TO: Mike Rapoport (IBM) <[email protected]>
:::::: CC: Luis Chamberlain <[email protected]>

--
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.