* [rt-devel:linux-6.3.y-rt-rebase 15/47] kernel/printk/printk.c:3341:13: warning: variable 'index' set but not used
@ 2023-03-09 19:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-09 19:16 UTC (permalink / raw)
To: John Ogness; +Cc: oe-kbuild-all, Sebastian Andrzej Siewior
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-09 19:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-09 19:16 [rt-devel:linux-6.3.y-rt-rebase 15/47] kernel/printk/printk.c:3341:13: warning: variable 'index' set but not used 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.