All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Dave Hansen <dave.hansen@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [daveh-devel:kss 31/32] arch/x86/kernel/cet.c:204:6: warning: no previous prototype for 'regs_set_return_ip'
Date: Mon, 19 Oct 2026 10:18:57 +0800	[thread overview]
Message-ID: <202610191047.bWwiVQVA-lkp@intel.com> (raw)

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

             reply	other threads:[~2026-10-19  2:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19  2:18 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-10-19  2:53 [daveh-devel:kss 31/32] arch/x86/kernel/cet.c:204:6: warning: no previous prototype for 'regs_set_return_ip' kernel test robot

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=202610191047.bWwiVQVA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dave.hansen@linux.intel.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.