* [krzk-github:n/dts-mfd-rtc-interrupt-level-fixup-exynos-sec-maxim 27/27] drivers/power/supply/max17040_battery.c:365:15: warning: variable 'flags' set but not used
@ 2020-12-11 1:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-11 1:00 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3789 bytes --]
tree: https://github.com/krzk/linux n/dts-mfd-rtc-interrupt-level-fixup-exynos-sec-maxim
head: 4cb9d4fa11c696c5fffcd097744f1d06360469be
commit: 4cb9d4fa11c696c5fffcd097744f1d06360469be [27/27] power: supply: max17040: Do not enforce (incorrect) interrupt trigger type
config: ia64-randconfig-p001-20201209 (attached as .config)
compiler: ia64-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/4cb9d4fa11c696c5fffcd097744f1d06360469be
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
git checkout 4cb9d4fa11c696c5fffcd097744f1d06360469be
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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 >>):
In file included from arch/ia64/include/asm/pgtable.h:154,
from include/linux/pgtable.h:6,
from arch/ia64/include/asm/uaccess.h:40,
from include/linux/uaccess.h:11,
from arch/ia64/include/asm/sections.h:11,
from include/linux/interrupt.h:20,
from drivers/power/supply/max17040_battery.c:16:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:127:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
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
2e17ed94de68953 Matheus Castello 2019-12-05 361
2e17ed94de68953 Matheus Castello 2019-12-05 362 static int max17040_enable_alert_irq(struct max17040_chip *chip)
2e17ed94de68953 Matheus Castello 2019-12-05 363 {
2e17ed94de68953 Matheus Castello 2019-12-05 364 struct i2c_client *client = chip->client;
2e17ed94de68953 Matheus Castello 2019-12-05 @365 unsigned int flags;
2e17ed94de68953 Matheus Castello 2019-12-05 366 int ret;
2e17ed94de68953 Matheus Castello 2019-12-05 367
2e17ed94de68953 Matheus Castello 2019-12-05 368 flags = IRQF_TRIGGER_FALLING | IRQF_ONESHOT;
2e17ed94de68953 Matheus Castello 2019-12-05 369 ret = devm_request_threaded_irq(&client->dev, client->irq, NULL,
4cb9d4fa11c696c Krzysztof Kozlowski 2020-12-10 370 max17040_thread_handler, IRQF_ONESHOT,
2e17ed94de68953 Matheus Castello 2019-12-05 371 chip->battery->desc->name, chip);
2e17ed94de68953 Matheus Castello 2019-12-05 372
2e17ed94de68953 Matheus Castello 2019-12-05 373 return ret;
2e17ed94de68953 Matheus Castello 2019-12-05 374 }
2e17ed94de68953 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: 25925 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-11 1:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11 1:00 [krzk-github:n/dts-mfd-rtc-interrupt-level-fixup-exynos-sec-maxim 27/27] drivers/power/supply/max17040_battery.c:365:15: warning: variable 'flags' set but not used kernel test robot
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.