devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Chunyan Zhang <zhang.chunyan@linaro.org>
Cc: kbuild-all@01.org, Mark Brown <broonie@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Chunyan Zhang <zhang.lyra@gmail.com>
Subject: Re: [PATCH V4 5/5] regulator: add PM suspend and resume hooks
Date: Fri, 26 Jan 2018 04:21:44 +0800	[thread overview]
Message-ID: <201801260401.21YnBnI6%fengguang.wu@intel.com> (raw)
In-Reply-To: <1516708783-6288-5-git-send-email-zhang.chunyan@linaro.org>

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

Hi Chunyan,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on v4.15-rc9]
[cannot apply to regulator/for-next next-20180119]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Chunyan-Zhang/bindings-regulator-added-support-for-suspend-states/20180126-024941
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: i386-randconfig-s0-201803 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers//regulator/core.c: In function 'regulator_suspend_late':
>> drivers//regulator/core.c:4319:26: error: 'pm_suspend_target_state' undeclared (first use in this function)
     suspend_state_t state = pm_suspend_target_state;
                             ^~~~~~~~~~~~~~~~~~~~~~~
   drivers//regulator/core.c:4319:26: note: each undeclared identifier is reported only once for each function it appears in
   drivers//regulator/core.c: In function 'regulator_resume_early':
   drivers//regulator/core.c:4349:26: error: 'pm_suspend_target_state' undeclared (first use in this function)
     suspend_state_t state = pm_suspend_target_state;
                             ^~~~~~~~~~~~~~~~~~~~~~~

vim +/pm_suspend_target_state +4319 drivers//regulator/core.c

  4310	
  4311	/**
  4312	 * regulator_suspend_late - prepare regulators for system wide suspend
  4313	 * @state: system suspend state
  4314	 *
  4315	 * Configure each regulator with it's suspend operating parameters for state.
  4316	 */
  4317	static int regulator_suspend_late(struct device *dev)
  4318	{
> 4319		suspend_state_t state = pm_suspend_target_state;
  4320	
  4321		return class_for_each_device(&regulator_class, NULL, &state,
  4322					     _regulator_suspend_late);
  4323	}
  4324	static int _regulator_resume_early(struct device *dev, void *data)
  4325	{
  4326		int ret = 0;
  4327		struct regulator_dev *rdev = dev_to_rdev(dev);
  4328		suspend_state_t *state = data;
  4329		struct regulator_state *rstate;
  4330	
  4331		rstate = regulator_get_suspend_state(rdev, *state);
  4332		if (rstate == NULL)
  4333			return -EINVAL;
  4334	
  4335		mutex_lock(&rdev->mutex);
  4336	
  4337		if (rdev->desc->ops->resume_early &&
  4338		    (rstate->enabled == ENABLE_IN_SUSPEND ||
  4339		     rstate->enabled == DISABLE_IN_SUSPEND))
  4340			ret = rdev->desc->ops->resume_early(rdev);
  4341	
  4342		mutex_unlock(&rdev->mutex);
  4343	
  4344		return ret;
  4345	}
  4346	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

      parent reply	other threads:[~2018-01-25 20:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-23 11:59 [PATCH V4 1/5] bindings: regulator: added support for suspend states Chunyan Zhang
2018-01-23 11:59 ` [PATCH V4 2/5] regulator: make regulator voltage be an array to support more states Chunyan Zhang
     [not found]   ` <1516708783-6288-2-git-send-email-zhang.chunyan-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2018-01-23 16:04     ` Mark Brown
2018-01-23 11:59 ` [PATCH V4 3/5] drivers: regulator: leave one item to record whether regulator is enabled Chunyan Zhang
     [not found] ` <1516708783-6288-1-git-send-email-zhang.chunyan-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2018-01-23 11:59   ` [PATCH V4 4/5] drivers: regulator: empty the old suspend functions Chunyan Zhang
2018-01-23 11:59 ` [PATCH V4 5/5] regulator: add PM suspend and resume hooks Chunyan Zhang
     [not found]   ` <1516708783-6288-5-git-send-email-zhang.chunyan-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2018-01-25 20:04     ` kbuild test robot
2018-01-25 20:21   ` kbuild test robot [this message]

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=201801260401.21YnBnI6%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=zhang.chunyan@linaro.org \
    --cc=zhang.lyra@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).