[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111300927.gR4hZApS-lkp@intel.com>
Date: Tue, 30 Nov 2021 09:28:25 +0800
From: kernel test robot <lkp@...el.com>
To: Tony Lindgren <tony@...mide.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Sasha Levin <sashal@...nel.org>
Subject: [linux-stable-rc:linux-5.10.y 2147/2411]
drivers/bus/ti-sysc.c:2446:13: warning: variable 'error' set but not used
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head: cd4fd0597d3787df6c6771a7b41379d35a8f31b0
commit: 5eca1c8412f40dd798c28549cd4c032217ad2faf [2147/2411] bus: ti-sysc: Add quirk handling for reinit on context lost
config: arm-defconfig (https://download.01.org/0day-ci/archive/20211130/202111300927.gR4hZApS-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/stable/linux-stable-rc.git/commit/?id=5eca1c8412f40dd798c28549cd4c032217ad2faf
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.10.y
git checkout 5eca1c8412f40dd798c28549cd4c032217ad2faf
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/bus/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
drivers/bus/ti-sysc.c: In function 'sysc_reinit_modules':
>> drivers/bus/ti-sysc.c:2446:13: warning: variable 'error' set but not used [-Wunused-but-set-variable]
2446 | int error = 0;
| ^~~~~
vim +/error +2446 drivers/bus/ti-sysc.c
2439
2440 /* Caller needs to take list_lock if ever used outside of cpu_pm */
2441 static void sysc_reinit_modules(struct sysc_soc_info *soc)
2442 {
2443 struct sysc_module *module;
2444 struct list_head *pos;
2445 struct sysc *ddata;
> 2446 int error = 0;
2447
2448 list_for_each(pos, &sysc_soc->restored_modules) {
2449 module = list_entry(pos, struct sysc_module, node);
2450 ddata = module->ddata;
2451 error = sysc_reinit_module(ddata, ddata->enabled);
2452 }
2453 }
2454
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists