All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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
Date: Sat, 04 Jan 2020 05:58:07 +0800	[thread overview]
Message-ID: <202001040502.CSAlVIhd%lkp@intel.com> (raw)

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

                 reply	other threads:[~2020-01-03 21:58 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=202001040502.CSAlVIhd%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.