* [daveh-devel:kss 31/32] arch/x86/kernel/cet.c:204:6: warning: no previous prototype for 'regs_set_return_ip'
@ 2026-10-19 2:18 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-19 2:18 UTC (permalink / raw)
To: Dave Hansen; +Cc: 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-defconfig (https://download.01.org/0day-ci/archive/20261019/202610191047.bWwiVQVA-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261019/202610191047.bWwiVQVA-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/202610191047.bWwiVQVA-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/cet.c:204:6: warning: no previous prototype for 'regs_set_return_ip' [-Wmissing-prototypes]
204 | void regs_set_return_ip(struct pt_regs *regs, unsigned long ip)
| ^~~~~~~~~~~~~~~~~~
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] 2+ messages in thread* [daveh-devel:kss 31/32] arch/x86/kernel/cet.c:204:6: warning: no previous prototype for 'regs_set_return_ip'
@ 2026-10-19 2:53 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-19 2:53 UTC (permalink / raw)
To: Dave Hansen; +Cc: 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-rhel-9.4 (https://download.01.org/0day-ci/archive/20261019/202610190401.wGRf89ij-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261019/202610190401.wGRf89ij-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/202610190401.wGRf89ij-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/cet.c:204:6: warning: no previous prototype for 'regs_set_return_ip' [-Wmissing-prototypes]
204 | void regs_set_return_ip(struct pt_regs *regs, unsigned long ip)
| ^~~~~~~~~~~~~~~~~~
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] 2+ messages in thread
end of thread, other threads:[~2026-10-19 2:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19 2:18 [daveh-devel:kss 31/32] arch/x86/kernel/cet.c:204:6: warning: no previous prototype for 'regs_set_return_ip' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-10-19 2:53 kernel test robot
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.