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

[-- Attachment #1: Type: text/plain, Size: 3005 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: x86_64-randconfig-x017-201803 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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); did you mean 'suspend_set_state'?
     suspend_state_t state = pm_suspend_target_state;
                             ^~~~~~~~~~~~~~~~~~~~~~~
                             suspend_set_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); did you mean 'suspend_set_state'?
     suspend_state_t state = pm_suspend_target_state;
                             ^~~~~~~~~~~~~~~~~~~~~~~
                             suspend_set_state

vim +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: 29089 bytes --]

  parent reply	other threads:[~2018-01-25 20:04 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 [this message]
2018-01-25 20:21   ` kbuild test robot

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=201801260332.7auvDUha%fengguang.wu@intel.com \
    --to=lkp-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=kbuild-all-JC7UmRfGjtg@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=zhang.chunyan-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=zhang.lyra-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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 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).