linux-pwm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jisheng Zhang <jszhang@marvell.com>
To: kbuild test robot <fengguang.wu@intel.com>
Cc: kbuild-all@01.org, linux-pwm@vger.kernel.org,
	Thierry Reding <thierry.reding@gmail.com>
Subject: Re: [pwm:for-4.9/drivers 2/9] drivers/pwm/pwm-berlin.c:245:35: error: 'struct berlin_pwm_chip' has no member named 'chips'
Date: Tue, 6 Sep 2016 13:35:31 +0800	[thread overview]
Message-ID: <20160906133531.367129f0@xhacker> (raw)
In-Reply-To: <201609051807.8q1Dh6WZ%fengguang.wu@intel.com>



On Mon, 5 Sep 2016 18:37:13 +0800 kbuild test robot  wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git for-4.9/drivers
> head:   e63ed23775362a6e1a867dc2f75ebbf4e3a8d4d2
> commit: fd47f104003c629d0ec6be4c2ead90191c184a23 [2/9] pwm: berlin: Add suspend/resume support
> config: arm64-allyesconfig (attached as .config)
> compiler: aarch64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
> reproduce:
>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout fd47f104003c629d0ec6be4c2ead90191c184a23
>         # save the attached .config to linux build tree
>         make.cross ARCH=arm64 
> 
> All errors (new ones prefixed by >>):
> 
>    drivers/pwm/pwm-berlin.c: In function 'berlin_pwm_suspend':
> >> drivers/pwm/pwm-berlin.c:245:35: error: 'struct berlin_pwm_chip' has no member named 'chips'  
>       channel = pwm_get_chip_data(&pwm->chips.pwms[i]);
>                                       ^


Thanks for information. Below patch can fix it.

Hi Thierry,

a separate fix or amend the commit, which do you prefer?

Thanks,
Jisheng


8<----------------
diff --git a/drivers/pwm/pwm-berlin.c b/drivers/pwm/pwm-berlin.c
index 31b2ee3..01339c1 100644
--- a/drivers/pwm/pwm-berlin.c
+++ b/drivers/pwm/pwm-berlin.c
@@ -242,7 +242,7 @@ static int berlin_pwm_suspend(struct device *dev)
 	for (i = 0; i < pwm->chip.npwm; i++) {
 		struct berlin_pwm_channel *channel;
 
-		channel = pwm_get_chip_data(&pwm->chips.pwms[i]);
+		channel = pwm_get_chip_data(&pwm->chip.pwms[i]);
 		if (!channel)
 			continue;
 

  reply	other threads:[~2016-09-06  5:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-05 10:37 [pwm:for-4.9/drivers 2/9] drivers/pwm/pwm-berlin.c:245:35: error: 'struct berlin_pwm_chip' has no member named 'chips' kbuild test robot
2016-09-06  5:35 ` Jisheng Zhang [this message]
2016-09-06  9:08   ` Thierry Reding
2016-09-06  9:09     ` Jisheng Zhang

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=20160906133531.367129f0@xhacker \
    --to=jszhang@marvell.com \
    --cc=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=thierry.reding@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).