All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2021-03-03 21:31 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-03-03 21:31 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2973 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: x86_64-randconfig-s021-20210304 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-245-gacc5c298-dirty
        # 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
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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: 33647 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [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
@ 2021-03-03 21:26 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-03-03 21:26 UTC (permalink / raw)
  To: kbuild-all

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-03 21:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2021-03-03 21:26 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.