* [daveh-devel:kss 31/32] arch/x86/kernel/cet.c:204:6: warning: no previous prototype for function 'regs_set_return_ip'
@ 2026-10-19 1:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-19 1:03 UTC (permalink / raw)
To: Dave Hansen; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git kss
head: 1b2e2aefa6c7e3d15fac1b25a971b2d2cc3b697d
commit: ca107dce40b82cc491ac08e03e01626956ca5eb4 [31/32] fred-entry-ssp-muck
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20261019/202610190320.LiuXeUz8-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261019/202610190320.LiuXeUz8-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/202610190320.LiuXeUz8-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/cet.c:204:6: warning: no previous prototype for function 'regs_set_return_ip' [-Wmissing-prototypes]
204 | void regs_set_return_ip(struct pt_regs *regs, unsigned long ip)
| ^
arch/x86/kernel/cet.c:204:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
204 | void regs_set_return_ip(struct pt_regs *regs, unsigned long ip)
| ^
| static
1 warning generated.
vim +/regs_set_return_ip +204 arch/x86/kernel/cet.c
193
194 /*
195 * Change the return IP of an event. Use this instead of directly
196 * manipulating regs->ip.
197 *
198 * The hardware saves a special FRED entry frame on to the shadow
199 * stack. It contains the RIP of the interrupted context. ERETS
200 * ensures that this matches regs->ip.
201 *
202 * Update the FRED entry frame in addition to regs->ip.
203 */
> 204 void regs_set_return_ip(struct pt_regs *regs, unsigned long ip)
205 {
206 struct fred_shstk_entry_frame *ssef;
207
208 regs->ip = ip;
209
210 /* Only kernel-mode events save the 'ssef' pointer. */
211 WARN_ON_ONCE(user_mode(regs));
212
--
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:[~2026-10-19 1:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19 1:03 [daveh-devel:kss 31/32] arch/x86/kernel/cet.c:204:6: warning: no previous prototype for function 'regs_set_return_ip' 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