Linux Power Management development
 help / color / mirror / Atom feed
From: Phil Reid <preid@electromag.com.au>
To: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, sre@kernel.org, dbaryshkov@gmail.com,
	dwmw2@infradead.org, linux-pm@vger.kernel.org
Subject: Re: [PATCH 4/4] power: sbs-battery: Use gpio_desc and sleeping calls for battery detect
Date: Fri, 22 Jul 2016 22:18:28 +0800	[thread overview]
Message-ID: <fbc31b36-e6bf-b7c5-742b-91619280b8f4@electromag.com.au> (raw)
In-Reply-To: <201607221825.d8qlO3ak%fengguang.wu@intel.com>

On 22/07/2016 18:40, kbuild test robot wrote:
> Hi,
>
> [auto build test ERROR on battery/master]
> [also build test ERROR on v4.7-rc7 next-20160722]
> [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/Phil-Reid/power-sbs-manager-fixup-gpio-detect-irq-handling/20160722-174454
> base:   git://git.infradead.org/battery-2.6.git master
> config: x86_64-randconfig-n0-07221807 (attached as .config)
> compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
>         # save the attached .config to linux build tree
>         make ARCH=x86_64
>
> All errors (new ones prefixed by >>):
>
>    drivers/power/sbs-battery.c: In function 'sbs_probe':
>>> drivers/power/sbs-battery.c:857:33: error: passing argument 1 of 'sbs_of_populate_pdata' from incompatible pointer type [-Werror=incompatible-pointer-types]
>       pdata = sbs_of_populate_pdata(chip);
>                                     ^~~~
>    drivers/power/sbs-battery.c:805:34: note: expected 'struct i2c_client *' but argument is of type 'struct sbs_info *'
>     static struct sbs_platform_data *sbs_of_populate_pdata(
>                                      ^~~~~~~~~~~~~~~~~~~~~
>    cc1: some warnings being treated as errors
>
> vim +/sbs_of_populate_pdata +857 drivers/power/sbs-battery.c
>
>    851		chip->ignore_changes = 1;
>    852		chip->last_state = POWER_SUPPLY_STATUS_UNKNOWN;
>    853	
>    854		if (pdata) {
>    855			pdata = sbs_populate_pdata(chip);
>    856		} else {
>  > 857			pdata = sbs_of_populate_pdata(chip);
>    858		}
>    859	
>    860		if (IS_ERR(pdata))
>
Forgot to update an empty function for when CONFIG_OF is not defined.
I'll update after other feedback on the patch.

-- 
Regards
Phil Reid


  reply	other threads:[~2016-07-22 14:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-22  8:42 [PATCH 0/4] power: sbs-manager fixup gpio detect irq handling Phil Reid
2016-07-22  8:42 ` [PATCH 1/4] power: sbs-battery: Use devm_kzalloc to alloc data Phil Reid
2016-07-22  8:42 ` [PATCH 2/4] power: sbs-battery: Request threaded irq and fix dev callback cookie Phil Reid
2016-07-22  8:42 ` [PATCH 3/4] power: sbs-battery: Use devm_power_supply_register Phil Reid
2016-07-22  8:42 ` [PATCH 4/4] power: sbs-battery: Use gpio_desc and sleeping calls for battery detect Phil Reid
2016-07-22 10:40   ` kbuild test robot
2016-07-22 14:18     ` Phil Reid [this message]
2016-07-31  3:20   ` 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=fbc31b36-e6bf-b7c5-742b-91619280b8f4@electromag.com.au \
    --to=preid@electromag.com.au \
    --cc=dbaryshkov@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=kbuild-all@01.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=sre@kernel.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