From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [tmlind-omap:for-next 3/12] drivers/bus/ti-sysc.c:2494:13: error: variable 'error' set but not used
Date: Fri, 01 Oct 2021 10:08:00 +0800 [thread overview]
Message-ID: <202110011055.W9vApCQ9-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2161 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git for-next
head: 7fd4d99072ce6b546bdcf99d32c8f7449abd7fa4
commit: 9d881361206ebcf6285c2ec2ef275aff80875347 [3/12] bus: ti-sysc: Add quirk handling for reinit on context lost
config: arm-allyesconfig (attached as .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/tmlind/linux-omap.git/commit/?id=9d881361206ebcf6285c2ec2ef275aff80875347
git remote add tmlind-omap https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git
git fetch --no-tags tmlind-omap for-next
git checkout 9d881361206ebcf6285c2ec2ef275aff80875347
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/bus/ti-sysc.c: In function 'sysc_reinit_modules':
>> drivers/bus/ti-sysc.c:2494:13: error: variable 'error' set but not used [-Werror=unused-but-set-variable]
2494 | int error = 0;
| ^~~~~
cc1: all warnings being treated as errors
vim +/error +2494 drivers/bus/ti-sysc.c
2487
2488 /* Caller needs to take list_lock if ever used outside of cpu_pm */
2489 static void sysc_reinit_modules(struct sysc_soc_info *soc)
2490 {
2491 struct sysc_module *module;
2492 struct list_head *pos;
2493 struct sysc *ddata;
> 2494 int error = 0;
2495
2496 list_for_each(pos, &sysc_soc->restored_modules) {
2497 module = list_entry(pos, struct sysc_module, node);
2498 ddata = module->ddata;
2499 error = sysc_reinit_module(ddata, ddata->enabled);
2500 }
2501 }
2502
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 79206 bytes --]
next reply other threads:[~2021-10-01 2:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-01 2:08 kernel test robot [this message]
2021-10-06 5:41 ` [tmlind-omap:for-next 3/12] drivers/bus/ti-sysc.c:2494:13: error: variable 'error' set but not used Tony Lindgren
2021-10-06 5:41 ` Tony Lindgren
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=202110011055.W9vApCQ9-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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.