[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201603112357.O4WbSsuq%fengguang.wu@intel.com>
Date: Sat, 12 Mar 2016 00:01:34 +0800
From: kbuild test robot <lkp@...el.com>
To: Marc Titinger <mtitinger@...libre.com>
Cc: kbuild-all@...org, jic23@...nel.org, knaack.h@....de,
lars@...afoo.de, pmeerw@...erw.net, afd@...com,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH-vs-togreg 1/2] iio: ina2xx-adc: update the CALIB.
register when RShunt changes
Hi Marc,
[auto build test WARNING on iio/togreg]
[also build test WARNING on next-20160311]
[cannot apply to v4.5-rc7]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Marc-Titinger/iio-ina2xx-adc-update-the-CALIB-register-when-RShunt-changes/20160311-225616
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: i386-randconfig-s1-201610 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/iio/adc/ina2xx-adc.c: In function 'ina2xx_init':
>> drivers/iio/adc/ina2xx-adc.c:629:6: warning: unused variable 'regval' [-Wunused-variable]
u16 regval;
^
vim +/regval +629 drivers/iio/adc/ina2xx-adc.c
c43a102e Marc Titinger 2015-12-07 613 .attrs = ina2xx_attributes,
c43a102e Marc Titinger 2015-12-07 614 };
c43a102e Marc Titinger 2015-12-07 615
c43a102e Marc Titinger 2015-12-07 616 static const struct iio_info ina2xx_info = {
c43a102e Marc Titinger 2015-12-07 617 .driver_module = THIS_MODULE,
7906dd52 Andrew F. Davis 2016-02-24 618 .attrs = &ina2xx_attribute_group,
7906dd52 Andrew F. Davis 2016-02-24 619 .read_raw = ina2xx_read_raw,
7906dd52 Andrew F. Davis 2016-02-24 620 .write_raw = ina2xx_write_raw,
7906dd52 Andrew F. Davis 2016-02-24 621 .debugfs_reg_access = ina2xx_debug_reg,
c43a102e Marc Titinger 2015-12-07 622 };
c43a102e Marc Titinger 2015-12-07 623
76011646 Marc Titinger 2016-03-11 624
76011646 Marc Titinger 2016-03-11 625
c43a102e Marc Titinger 2015-12-07 626 /* Initialize the configuration and calibration registers. */
c43a102e Marc Titinger 2015-12-07 627 static int ina2xx_init(struct ina2xx_chip_info *chip, unsigned int config)
c43a102e Marc Titinger 2015-12-07 628 {
c43a102e Marc Titinger 2015-12-07 @629 u16 regval;
7906dd52 Andrew F. Davis 2016-02-24 630 int ret;
c43a102e Marc Titinger 2015-12-07 631
7906dd52 Andrew F. Davis 2016-02-24 632 ret = regmap_write(chip->regmap, INA2XX_CONFIG, config);
7906dd52 Andrew F. Davis 2016-02-24 633 if (ret)
c43a102e Marc Titinger 2015-12-07 634 return ret;
7906dd52 Andrew F. Davis 2016-02-24 635
76011646 Marc Titinger 2016-03-11 636 return ina2xx_set_calibration(chip);
c43a102e Marc Titinger 2015-12-07 637 }
:::::: The code at line 629 was first introduced by commit
:::::: c43a102e67db99c8bfe6e8a9280cec13ff53b789 iio: ina2xx: add support for TI INA2xx Power Monitors
:::::: TO: Marc Titinger <mtitinger@...libre.com>
:::::: CC: Jonathan Cameron <jic23@...nel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/octet-stream" (21608 bytes)
Powered by blists - more mailing lists