* [rt-devel:linux-6.3.y-rt-rebase 15/47] kernel/printk/printk.c:3341:6: warning: variable 'index' set but not used
@ 2023-03-13 12:39 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-13 12:39 UTC (permalink / raw)
To: John Ogness; +Cc: llvm, 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: 5062011b37fdb8fe4bbef31168bbd956bb32ee7a
commit: 8bc429d558376b052de3bb766a424033d39e443b [15/47] serial: 8250: implement write_atomic
config: x86_64-randconfig-a014-20230313 (https://download.01.org/0day-ci/archive/20230313/202303132042.5MHtZ5kf-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 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/202303132042.5MHtZ5kf-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/printk/printk.c:3341:6: warning: variable 'index' set but not used [-Wunused-but-set-variable]
int index = 0;
^
1 warning generated.
vim +/index +3341 kernel/printk/printk.c
f7ffa0536cb17d John Ogness 2022-02-04 3335
f7ffa0536cb17d John Ogness 2022-02-04 3336 static void atomic_console_flush_all(void)
f7ffa0536cb17d John Ogness 2022-02-04 3337 {
f7ffa0536cb17d John Ogness 2022-02-04 3338 unsigned long flags;
f7ffa0536cb17d John Ogness 2022-02-04 3339 struct console *con;
f7ffa0536cb17d John Ogness 2022-02-04 3340 bool any_progress;
f7ffa0536cb17d John Ogness 2022-02-04 @3341 int index = 0;
f7ffa0536cb17d John Ogness 2022-02-04 3342
f7ffa0536cb17d John Ogness 2022-02-04 3343 if (console_suspended)
f7ffa0536cb17d John Ogness 2022-02-04 3344 return;
f7ffa0536cb17d 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-13 12:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13 12:39 [rt-devel:linux-6.3.y-rt-rebase 15/47] kernel/printk/printk.c:3341:6: warning: variable 'index' set but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).