All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mario Limonciello <superm1@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [superm1:superm1/s4-at-s5 3/3] kernel/reboot.c:73:13: warning: variable 'shutdown_legacy' set but not used
Date: Tue, 10 Nov 2026 08:35:24 +0800	[thread overview]
Message-ID: <202611100819.4dLGt0dr-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/superm1/linux.git superm1/s4-at-s5
head:   8dd92ed84c02d78694d091fcc20a976f096bb27e
commit: 8dd92ed84c02d78694d091fcc20a976f096bb27e [3/3] PM: Add shutdown=legacy command line option
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20261110/202611100819.4dLGt0dr-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project fc9576e3b179738d99c5babe5cd9d6c1f883e0db)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261110/202611100819.4dLGt0dr-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/202611100819.4dLGt0dr-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> kernel/reboot.c:73:13: warning: variable 'shutdown_legacy' set but not used [-Wunused-but-set-global]
      73 | static bool shutdown_legacy;
         |             ^
   1 warning generated.


vim +/shutdown_legacy +73 kernel/reboot.c

    65	
    66	/*
    67	 * This variable is used to indicate if a halt was initiated instead of a
    68	 * reboot when the reboot call was invoked with LINUX_REBOOT_CMD_POWER_OFF, but
    69	 * the system cannot be powered off. This allowes kernel_halt() to notify users
    70	 * of that.
    71	 */
    72	static bool poweroff_fallback_to_halt;
  > 73	static bool shutdown_legacy;
    74	

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

                 reply	other threads:[~2026-11-10  0:35 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=202611100819.4dLGt0dr-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=superm1@kernel.org \
    /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.