From: kbuild test robot <lkp@intel.com>
To: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
Javier Martinez Canillas <javier@osg.samsung.com>,
Sebastian Reichel <sre@kernel.org>,
linux-pm@vger.kernel.org
Subject: Re: [PATCH 1/2] power: supply: ltc2941-battery-gauge: Add OF device ID table
Date: Thu, 23 Feb 2017 00:38:29 +0800 [thread overview]
Message-ID: <201702230027.w5X9s0IS%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170222142816.19246-1-javier@osg.samsung.com>
[-- Attachment #1: Type: text/plain, Size: 2064 bytes --]
Hi Javier,
[auto build test WARNING on battery/master]
[also build test WARNING on v4.10 next-20170221]
[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/Javier-Martinez-Canillas/power-supply-ltc2941-battery-gauge-Add-OF-device-ID-table/20170222-223315
base: git://git.infradead.org/battery-2.6.git master
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers/power/supply/ltc2941-battery-gauge.c: In function 'ltc294x_i2c_probe':
>> drivers/power/supply/ltc2941-battery-gauge.c:391:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
info->num_regs = (int)of_device_get_match_data(&client->dev);
^
vim +391 drivers/power/supply/ltc2941-battery-gauge.c
375 {
376 struct power_supply_config psy_cfg = {};
377 struct ltc294x_info *info;
378 int ret;
379 u32 prescaler_exp;
380 s32 r_sense;
381 struct device_node *np;
382
383 info = devm_kzalloc(&client->dev, sizeof(*info), GFP_KERNEL);
384 if (info == NULL)
385 return -ENOMEM;
386
387 i2c_set_clientdata(client, info);
388
389 np = of_node_get(client->dev.of_node);
390
> 391 info->num_regs = (int)of_device_get_match_data(&client->dev);
392 info->supply_desc.name = np->name;
393
394 /* r_sense can be negative, when sense+ is connected to the battery
395 * instead of the sense-. This results in reversed measurements. */
396 ret = of_property_read_u32(np, "lltc,resistor-sense", &r_sense);
397 if (ret < 0) {
398 dev_err(&client->dev,
399 "Could not find lltc,resistor-sense in devicetree\n");
---
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: 55500 bytes --]
prev parent reply other threads:[~2017-02-22 16:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-22 14:28 Javier Martinez Canillas
2017-02-22 14:28 ` [PATCH 2/2] power: supply: max17040: " Javier Martinez Canillas
2017-02-22 16:38 ` 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=201702230027.w5X9s0IS%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=javier@osg.samsung.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--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
all inboxes | Powered by JetHome®