From: kbuild test robot <lkp@intel.com>
To: Marc Titinger <mtitinger@baylibre.com>
Cc: kbuild-all@01.org, linux@roeck-us.net, jdelvare@suse.com,
lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org,
mturquette@baylibre.com, bcousson@baylibre.com,
Marc Titinger <mtitinger@baylibre.com>
Subject: Re: [RFC] hwmon: ina2xx: port to using remap, improve bandwidth.
Date: Sat, 24 Oct 2015 04:10:15 +0800 [thread overview]
Message-ID: <201510240401.hrurgL97%fengguang.wu@intel.com> (raw)
In-Reply-To: <1445616800-21329-1-git-send-email-mtitinger@baylibre.com>
[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]
Hi Marc,
[auto build test WARNING on hwmon/hwmon-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Marc-Titinger/hwmon-ina2xx-port-to-using-remap-improve-bandwidth/20151024-001809
config: openrisc-allyesconfig (attached as .config)
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
# save the attached .config to linux build tree
make.cross ARCH=openrisc
All warnings (new ones prefixed by >>):
drivers/hwmon/ina2xx.c: In function 'ina2xx_probe':
>> drivers/hwmon/ina2xx.c:456:3: warning: format '%li' expects type 'long int', but argument 3 has type 'u32'
vim +456 drivers/hwmon/ina2xx.c
440 /* Set config according to device type. */
441 data->config = &ina2xx_config[id->driver_data];
442 data->client = client;
443
444 /* Check for shunt resistor value.
445 * Give precedence to device tree over must-recompile.
446 */
447 if (of_property_read_u32(dev->of_node, "shunt-resistor", &val) < 0) {
448 pdata = dev_get_platdata(dev);
449 if (pdata)
450 val = pdata->shunt_uohms;
451 else
452 val = INA2XX_RSHUNT_DEFAULT;
453 }
454
455 if (val <= 0 || val > data->config->calibration_factor) {
> 456 dev_err(dev, "Invalid shunt resistor value %li", val);
457 return -ENODEV;
458 }
459 data->rshunt = val;
460
461 /* Write config to chip, and calibrate */
462 ret = ina2xx_init(data);
463 if (ret) {
464 dev_err(dev, "error configuring the device.\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/octet-stream, Size: 35395 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [RFC] hwmon: ina2xx: port to using remap, improve bandwidth.
Date: Fri, 23 Oct 2015 20:10:15 +0000 [thread overview]
Message-ID: <201510240401.hrurgL97%fengguang.wu@intel.com> (raw)
In-Reply-To: <1445616800-21329-1-git-send-email-mtitinger@baylibre.com>
[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]
Hi Marc,
[auto build test WARNING on hwmon/hwmon-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Marc-Titinger/hwmon-ina2xx-port-to-using-remap-improve-bandwidth/20151024-001809
config: openrisc-allyesconfig (attached as .config)
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
# save the attached .config to linux build tree
make.cross ARCH=openrisc
All warnings (new ones prefixed by >>):
drivers/hwmon/ina2xx.c: In function 'ina2xx_probe':
>> drivers/hwmon/ina2xx.c:456:3: warning: format '%li' expects type 'long int', but argument 3 has type 'u32'
vim +456 drivers/hwmon/ina2xx.c
440 /* Set config according to device type. */
441 data->config = &ina2xx_config[id->driver_data];
442 data->client = client;
443
444 /* Check for shunt resistor value.
445 * Give precedence to device tree over must-recompile.
446 */
447 if (of_property_read_u32(dev->of_node, "shunt-resistor", &val) < 0) {
448 pdata = dev_get_platdata(dev);
449 if (pdata)
450 val = pdata->shunt_uohms;
451 else
452 val = INA2XX_RSHUNT_DEFAULT;
453 }
454
455 if (val <= 0 || val > data->config->calibration_factor) {
> 456 dev_err(dev, "Invalid shunt resistor value %li", val);
457 return -ENODEV;
458 }
459 data->rshunt = val;
460
461 /* Write config to chip, and calibrate */
462 ret = ina2xx_init(data);
463 if (ret) {
464 dev_err(dev, "error configuring the device.\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/octet-stream, Size: 35395 bytes --]
[-- Attachment #3: Type: text/plain, Size: 153 bytes --]
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2015-10-23 20:11 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-19 16:21 [RFC] hwmon: ina2xx: allow for actual measurement bandwidth above 160 Hz Marc Titinger
2015-10-19 16:21 ` [lm-sensors] " Marc Titinger
2015-10-20 1:32 ` Guenter Roeck
2015-10-20 1:32 ` [lm-sensors] " Guenter Roeck
2015-10-20 7:58 ` Marc Titinger
2015-10-20 7:58 ` [lm-sensors] " Marc Titinger
2015-10-20 8:20 ` [PATCH v2] " Marc Titinger
2015-10-20 8:20 ` [lm-sensors] " Marc Titinger
2015-10-20 12:54 ` Guenter Roeck
2015-10-20 12:54 ` [lm-sensors] " Guenter Roeck
2015-10-20 13:17 ` Marc Titinger
2015-10-20 13:17 ` [lm-sensors] " Marc Titinger
2015-10-20 13:30 ` Guenter Roeck
2015-10-20 13:30 ` [lm-sensors] " Guenter Roeck
2015-10-20 13:46 ` Marc Titinger
2015-10-20 13:46 ` [lm-sensors] " Marc Titinger
2015-10-20 17:00 ` Guenter Roeck
2015-10-20 17:00 ` [lm-sensors] " Guenter Roeck
2015-10-21 7:46 ` Marc Titinger
2015-10-21 7:46 ` [lm-sensors] " Marc Titinger
2015-10-20 13:52 ` Michael Turquette
2015-10-20 13:52 ` [lm-sensors] " Michael Turquette
2015-10-23 16:13 ` [RFC] hwmon: ina2xx: port to using remap, improve bandwidth Marc Titinger
2015-10-23 16:13 ` [lm-sensors] " Marc Titinger
2015-10-23 16:49 ` kbuild test robot
2015-10-23 16:49 ` [lm-sensors] " kbuild test robot
2015-10-23 16:52 ` Guenter Roeck
2015-10-23 16:52 ` [lm-sensors] " Guenter Roeck
2015-10-23 20:35 ` Marc Titinger
2015-10-23 20:35 ` [lm-sensors] " Marc Titinger
2015-10-24 2:21 ` Guenter Roeck
2015-10-24 2:21 ` [lm-sensors] " Guenter Roeck
2015-10-24 12:45 ` Guenter Roeck
2015-10-24 12:45 ` [lm-sensors] " Guenter Roeck
2015-10-26 16:24 ` [PATCH 0/2] hwmon: ina2xx: convert driver to using regmap Marc Titinger
2015-10-26 16:24 ` [lm-sensors] " Marc Titinger
2015-10-26 16:24 ` [PATCH 1/2] " Marc Titinger
2015-10-26 16:24 ` [lm-sensors] " Marc Titinger
2015-10-27 1:02 ` Guenter Roeck
2015-10-27 1:02 ` [lm-sensors] " Guenter Roeck
2015-10-27 1:12 ` Guenter Roeck
2015-10-27 1:12 ` [lm-sensors] " Guenter Roeck
2015-10-27 9:51 ` [PATCH v2 " Marc Titinger
2015-10-27 9:51 ` [lm-sensors] " Marc Titinger
2015-10-28 2:47 ` Guenter Roeck
2015-10-28 2:47 ` [lm-sensors] " Guenter Roeck
2015-10-28 9:23 ` Marc Titinger
2015-10-28 9:23 ` [lm-sensors] " Marc Titinger
2015-10-26 16:24 ` [PATCH 2/2] hwmon: ina2xx: give precedence to DT over checking for platform data Marc Titinger
2015-10-26 16:24 ` [lm-sensors] " Marc Titinger
2015-10-27 1:10 ` Guenter Roeck
2015-10-27 1:10 ` [lm-sensors] " Guenter Roeck
2015-10-27 9:51 ` [PATCH v2 " Marc Titinger
2015-10-27 9:51 ` [lm-sensors] " Marc Titinger
2015-10-23 16:55 ` [RFC] hwmon: ina2xx: port to using remap, improve bandwidth kbuild test robot
2015-10-23 16:55 ` [lm-sensors] " kbuild test robot
2015-10-23 20:10 ` kbuild test robot [this message]
2015-10-23 20:10 ` 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=201510240401.hrurgL97%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=bcousson@baylibre.com \
--cc=jdelvare@suse.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=lm-sensors@lm-sensors.org \
--cc=mtitinger@baylibre.com \
--cc=mturquette@baylibre.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.