public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Tony Lindgren <tony@atomide.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Sasha Levin <sashal@kernel.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
Date: Tue, 30 Nov 2021 09:28:25 +0800	[thread overview]
Message-ID: <202111300927.gR4hZApS-lkp@intel.com> (raw)

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@intel.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

                 reply	other threads:[~2021-11-30  1:29 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=202111300927.gR4hZApS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sashal@kernel.org \
    --cc=tony@atomide.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox