From: kernel test robot <lkp@intel.com>
To: Denis Pauk <pauk.denis@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Guenter Roeck <linux@roeck-us.net>,
Bernhard Seibold <mail@bernhard-seibold.de>
Subject: [krzk-github:n/power-max17042-maint 2549/3946] drivers/hwmon/nct6775.c:150:13: error: unused variable 'ioreg'
Date: Wed, 10 Nov 2021 13:04:00 +0800 [thread overview]
Message-ID: <202111101352.hrfLTMGB-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1965 bytes --]
tree: https://github.com/krzk/linux n/power-max17042-maint
head: 6571f83efc55435b05ab8080fd5d22ba46185a08
commit: 52a017530b60bb3f6202dd1ffac5e1098c70c876 [2549/3946] hwmon: (nct6775) Use superio_*() function pointers in sio_data.
config: parisc-buildonly-randconfig-r006-20210928 (attached as .config)
compiler: hppa-linux-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://github.com/krzk/linux/commit/52a017530b60bb3f6202dd1ffac5e1098c70c876
git remote add krzk-github https://github.com/krzk/linux
git fetch --no-tags krzk-github n/power-max17042-maint
git checkout 52a017530b60bb3f6202dd1ffac5e1098c70c876
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=parisc
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/hwmon/nct6775.c: In function 'superio_outb':
>> drivers/hwmon/nct6775.c:150:13: error: unused variable 'ioreg' [-Werror=unused-variable]
150 | int ioreg = sio_data->sioreg;
| ^~~~~
drivers/hwmon/nct6775.c: In function 'superio_select':
drivers/hwmon/nct6775.c:166:13: error: unused variable 'ioreg' [-Werror=unused-variable]
166 | int ioreg = sio_data->sioreg;
| ^~~~~
cc1: all warnings being treated as errors
vim +/ioreg +150 drivers/hwmon/nct6775.c
147
148 static void superio_outb(struct nct6775_sio_data *sio_data, int reg, int val)
149 {
> 150 int ioreg = sio_data->sioreg;
151
152 outb(reg, ioreg);
153 outb(val, ioreg + 1);
154 }
155
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25518 bytes --]
reply other threads:[~2021-11-10 5:04 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=202111101352.hrfLTMGB-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mail@bernhard-seibold.de \
--cc=pauk.denis@gmail.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
Powered by JetHome