All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-review:Samuel-Holland/power-supply-axp20x_ac_power-Allow-offlining/20200104-033328 6/7] drivers/power/supply/axp20x_usb_power.c:477:5: warning: "CONFIG_PM_SLEEP" is not defined, evaluates to 0
@ 2020-01-03 21:58 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-03 21:58 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1909 bytes --]

tree:   https://github.com/0day-ci/linux/commits/Samuel-Holland/power-supply-axp20x_ac_power-Allow-offlining/20200104-033328
head:   cc30b3b788e783ea9e2818b26292baaba2bbde49
commit: d4e0884aca2c218a699d098b2c5618857899bb54 [6/7] power: supply: axp20x_usb_power: Add wakeup control
config: parisc-allmodconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d4e0884aca2c218a699d098b2c5618857899bb54
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=parisc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/power/supply/axp20x_usb_power.c:477:5: warning: "CONFIG_PM_SLEEP" is not defined, evaluates to 0 [-Wundef]
    #if CONFIG_PM_SLEEP
        ^~~~~~~~~~~~~~~

vim +/CONFIG_PM_SLEEP +477 drivers/power/supply/axp20x_usb_power.c

   476	
 > 477	#if CONFIG_PM_SLEEP
   478	static int axp20x_usb_power_suspend(struct device *dev)
   479	{
   480		struct axp20x_usb_power *power = dev_get_drvdata(dev);
   481		int i = 0;
   482	
   483		/*
   484		 * Allow wake via VBUS_PLUGIN only.
   485		 *
   486		 * As nested threaded IRQs are not automatically disabled during
   487		 * suspend, we must explicitly disable the remainder of the IRQs.
   488		 */
   489		if (device_may_wakeup(&power->supply->dev))
   490			enable_irq_wake(power->irqs[i++]);
   491		while (i < power->num_irqs)
   492			disable_irq(power->irqs[i++]);
   493	
   494		return 0;
   495	}
   496	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 59235 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-03 21:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-03 21:58 [linux-review:Samuel-Holland/power-supply-axp20x_ac_power-Allow-offlining/20200104-033328 6/7] drivers/power/supply/axp20x_usb_power.c:477:5: warning: "CONFIG_PM_SLEEP" is not defined, evaluates to 0 kbuild 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.