From: kernel test robot <lkp@intel.com>
To: David Woodhouse <dwmw@amazon.co.uk>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [dwmw2:kexec-debug-cfi 10/10] arch/x86/kernel/machine_kexec_64.c:312:13: warning: 'load_segments' defined but not used
Date: Wed, 26 Mar 2025 12:03:07 +0800 [thread overview]
Message-ID: <202503261144.q36i9bPk-lkp@intel.com> (raw)
tree: git://git.infradead.org/users/dwmw2/linux kexec-debug-cfi
head: 21e95723aa631b1eb5f618c8cf6061226d2a7d05
commit: 21e95723aa631b1eb5f618c8cf6061226d2a7d05 [10/10] final CFI hacks
config: x86_64-buildonly-randconfig-002-20250326 (https://download.01.org/0day-ci/archive/20250326/202503261144.q36i9bPk-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250326/202503261144.q36i9bPk-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/202503261144.q36i9bPk-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/machine_kexec_64.c:312:13: warning: 'load_segments' defined but not used [-Wunused-function]
312 | static void load_segments(void)
| ^~~~~~~~~~~~~
vim +/load_segments +312 arch/x86/kernel/machine_kexec_64.c
5234f5eb04abbbf arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-06-25 311
5234f5eb04abbbf arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-06-25 @312 static void load_segments(void)
5234f5eb04abbbf arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-06-25 313 {
5234f5eb04abbbf arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-06-25 314 __asm__ __volatile__ (
36c4fd23cc06f81 arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-07-29 315 "\tmovl %0,%%ds\n"
36c4fd23cc06f81 arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-07-29 316 "\tmovl %0,%%es\n"
36c4fd23cc06f81 arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-07-29 317 "\tmovl %0,%%ss\n"
36c4fd23cc06f81 arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-07-29 318 "\tmovl %0,%%fs\n"
36c4fd23cc06f81 arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-07-29 319 "\tmovl %0,%%gs\n"
2ec5e3a867d63d0 arch/x86_64/kernel/machine_kexec.c Michael Matz 2006-03-07 320 : : "a" (__KERNEL_DS) : "memory"
5234f5eb04abbbf arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-06-25 321 );
5234f5eb04abbbf arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-06-25 322 }
5234f5eb04abbbf arch/x86_64/kernel/machine_kexec.c Eric W. Biederman 2005-06-25 323
:::::: The code at line 312 was first introduced by commit
:::::: 5234f5eb04abbbfa306ccfbc2ccbb6e73f515b15 [PATCH] kexec: x86_64 kexec implementation
:::::: TO: Eric W. Biederman <ebiederm@xmission.com>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-03-26 4:03 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=202503261144.q36i9bPk-lkp@intel.com \
--to=lkp@intel.com \
--cc=dwmw@amazon.co.uk \
--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.