All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: John Ogness <john.ogness@linutronix.de>
Cc: oe-kbuild-all@lists.linux.dev,
	Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Subject: [rt-devel:linux-6.3.y-rt-rebase 15/47] kernel/printk/printk.c:3341:13: warning: variable 'index' set but not used
Date: Fri, 10 Mar 2023 03:16:50 +0800	[thread overview]
Message-ID: <202303100327.IbeLrGlf-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-6.3.y-rt-rebase
head:   c0ca8b79d21d0c9a1ac7ed0ebebb5588804ba825
commit: 8bc429d558376b052de3bb766a424033d39e443b [15/47] serial: 8250: implement write_atomic
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20230310/202303100327.IbeLrGlf-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=8bc429d558376b052de3bb766a424033d39e443b
        git remote add rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
        git fetch --no-tags rt-devel linux-6.3.y-rt-rebase
        git checkout 8bc429d558376b052de3bb766a424033d39e443b
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash kernel/printk/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303100327.IbeLrGlf-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/printk/printk.c: In function 'atomic_console_flush_all':
>> kernel/printk/printk.c:3341:13: warning: variable 'index' set but not used [-Wunused-but-set-variable]
    3341 |         int index = 0;
         |             ^~~~~


vim +/index +3341 kernel/printk/printk.c

f7ffa0536cb17da John Ogness 2022-02-04  3335  
f7ffa0536cb17da John Ogness 2022-02-04  3336  static void atomic_console_flush_all(void)
f7ffa0536cb17da John Ogness 2022-02-04  3337  {
f7ffa0536cb17da John Ogness 2022-02-04  3338  	unsigned long flags;
f7ffa0536cb17da John Ogness 2022-02-04  3339  	struct console *con;
f7ffa0536cb17da John Ogness 2022-02-04  3340  	bool any_progress;
f7ffa0536cb17da John Ogness 2022-02-04 @3341  	int index = 0;
f7ffa0536cb17da John Ogness 2022-02-04  3342  
f7ffa0536cb17da John Ogness 2022-02-04  3343  	if (console_suspended)
f7ffa0536cb17da John Ogness 2022-02-04  3344  		return;
f7ffa0536cb17da John Ogness 2022-02-04  3345  

:::::: The code at line 3341 was first introduced by commit
:::::: f7ffa0536cb17da9589ecda6513bfa0bd1fd1745 printk: add infrastucture for atomic consoles

:::::: TO: John Ogness <john.ogness@linutronix.de>
:::::: CC: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

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

                 reply	other threads:[~2023-03-09 19:28 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=202303100327.IbeLrGlf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bigeasy@linutronix.de \
    --cc=john.ogness@linutronix.de \
    --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.