From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [krzk-github:n/dts-mfd-rtc-interrupt-level-fixup-exynos-sec-maxim-v2 19/19] drivers/power/supply/max17040_battery.c:365:15: warning: variable 'flags' set but not used
Date: Thu, 04 Mar 2021 05:26:29 +0800 [thread overview]
Message-ID: <202103040523.eGHdrTKm-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3051 bytes --]
tree: https://github.com/krzk/linux n/dts-mfd-rtc-interrupt-level-fixup-exynos-sec-maxim-v2
head: 40e1c495c8e53613fa7b6045c402768e8911c733
commit: 40e1c495c8e53613fa7b6045c402768e8911c733 [19/19] power: supply: max17040: Do not enforce (incorrect) interrupt trigger type
config: alpha-randconfig-r012-20210303 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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/40e1c495c8e53613fa7b6045c402768e8911c733
git remote add krzk-github https://github.com/krzk/linux
git fetch --no-tags krzk-github n/dts-mfd-rtc-interrupt-level-fixup-exynos-sec-maxim-v2
git checkout 40e1c495c8e53613fa7b6045c402768e8911c733
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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/power/supply/max17040_battery.c: In function 'max17040_enable_alert_irq':
>> drivers/power/supply/max17040_battery.c:365:15: warning: variable 'flags' set but not used [-Wunused-but-set-variable]
365 | unsigned int flags;
| ^~~~~
vim +/flags +365 drivers/power/supply/max17040_battery.c
2e17ed94de6895 Matheus Castello 2019-12-05 361
2e17ed94de6895 Matheus Castello 2019-12-05 362 static int max17040_enable_alert_irq(struct max17040_chip *chip)
2e17ed94de6895 Matheus Castello 2019-12-05 363 {
2e17ed94de6895 Matheus Castello 2019-12-05 364 struct i2c_client *client = chip->client;
2e17ed94de6895 Matheus Castello 2019-12-05 @365 unsigned int flags;
2e17ed94de6895 Matheus Castello 2019-12-05 366 int ret;
2e17ed94de6895 Matheus Castello 2019-12-05 367
2e17ed94de6895 Matheus Castello 2019-12-05 368 flags = IRQF_TRIGGER_FALLING | IRQF_ONESHOT;
2e17ed94de6895 Matheus Castello 2019-12-05 369 ret = devm_request_threaded_irq(&client->dev, client->irq, NULL,
40e1c495c8e536 Krzysztof Kozlowski 2020-12-10 370 max17040_thread_handler, IRQF_ONESHOT,
2e17ed94de6895 Matheus Castello 2019-12-05 371 chip->battery->desc->name, chip);
2e17ed94de6895 Matheus Castello 2019-12-05 372
2e17ed94de6895 Matheus Castello 2019-12-05 373 return ret;
2e17ed94de6895 Matheus Castello 2019-12-05 374 }
2e17ed94de6895 Matheus Castello 2019-12-05 375
:::::: The code at line 365 was first introduced by commit
:::::: 2e17ed94de68953b17ed91b64f4bd176cdf38ad4 power: supply: max17040: Add IRQ handler for low SOC alert
:::::: TO: Matheus Castello <matheus@castello.eng.br>
:::::: CC: Sebastian Reichel <sre@kernel.org>
---
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: 26110 bytes --]
next reply other threads:[~2021-03-03 21:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-03 21:26 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-03 21:31 [krzk-github:n/dts-mfd-rtc-interrupt-level-fixup-exynos-sec-maxim-v2 19/19] drivers/power/supply/max17040_battery.c:365:15: warning: variable 'flags' set but not used kernel test robot
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=202103040523.eGHdrTKm-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.