All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [mark:randomize-kstack-siphash 1/1] arch/s390/include/asm/entry-common.h:57:2: error: call to undeclared function 'choose_random_kstack_offset'; ISO C99 and later do not support implicit function declarations
Date: Tue, 25 Nov 2025 21:53:13 +0800	[thread overview]
Message-ID: <202511252158.AzXWFYsv-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git randomize-kstack-siphash
head:   0783912db6e30339d55a5dc7eb6a696b440bedb3
commit: 0783912db6e30339d55a5dc7eb6a696b440bedb3 [1/1] HACK: use siphash to generate kstack offset per-task
config: s390-allnoconfig (https://download.01.org/0day-ci/archive/20251125/202511252158.AzXWFYsv-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9e9fe08b16ea2c4d9867fb4974edf2a3776d6ece)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251125/202511252158.AzXWFYsv-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/202511252158.AzXWFYsv-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/s390/kernel/traps.c:24:
   In file included from include/linux/entry-common.h:5:
   In file included from include/linux/irq-entry-common.h:12:
>> arch/s390/include/asm/entry-common.h:57:2: error: call to undeclared function 'choose_random_kstack_offset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      57 |         choose_random_kstack_offset(get_tod_clock_fast());
         |         ^
   1 error generated.
--
   In file included from arch/s390/kernel/syscall.c:35:
   In file included from include/linux/entry-common.h:5:
   In file included from include/linux/irq-entry-common.h:12:
>> arch/s390/include/asm/entry-common.h:57:2: error: call to undeclared function 'choose_random_kstack_offset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      57 |         choose_random_kstack_offset(get_tod_clock_fast());
         |         ^
>> arch/s390/kernel/syscall.c:89:2: error: call to undeclared function 'add_random_kstack_offset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      89 |         add_random_kstack_offset();
         |         ^
   2 errors generated.


vim +/choose_random_kstack_offset +57 arch/s390/include/asm/entry-common.h

56e62a73702836 Sven Schnelle 2020-11-21  53  
bae1cd368c45d1 Sven Schnelle 2021-04-29  54  static inline void arch_exit_to_user_mode_prepare(struct pt_regs *regs,
bae1cd368c45d1 Sven Schnelle 2021-04-29  55  						  unsigned long ti_work)
bae1cd368c45d1 Sven Schnelle 2021-04-29  56  {
6db1208bf95b4c Kees Cook     2024-06-19 @57  	choose_random_kstack_offset(get_tod_clock_fast());
bae1cd368c45d1 Sven Schnelle 2021-04-29  58  }
bae1cd368c45d1 Sven Schnelle 2021-04-29  59  

:::::: The code at line 57 was first introduced by commit
:::::: 6db1208bf95b4c091897b597c415e11edeab2e2d randomize_kstack: Remove non-functional per-arch entropy filtering

:::::: TO: Kees Cook <kees@kernel.org>
:::::: CC: Kees Cook <kees@kernel.org>

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

                 reply	other threads:[~2025-11-25 13:53 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=202511252158.AzXWFYsv-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=mark.rutland@arm.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.