Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1356025

Re: [PATCH-vs-togreg 1/2] iio: ina2xx-adc: update the CALIB. register when RShunt changes

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH-vs-togreg 1/2] iio: ina2xx-adc: update the CALIB. register when RShunt changes
Date 2016-03-11 17:10 +0100
Message-ID <rbxNw-hy-5@gated-at.bofh.it> (permalink)
References <rbwHN-7Fn-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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@baylibre.com>
:::::: CC: Jonathan Cameron <jic23@kernel.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH-vs-togreg 1/2] iio: ina2xx-adc: update the CALIB. register when RShunt changes Marc Titinger <mtitinger@baylibre.com> - 2016-03-11 16:00 +0100
  [PATCH-vs-togreg 2/2] iio: ina2xx-adc: fix scale for VShunt Marc Titinger <mtitinger@baylibre.com> - 2016-03-11 16:00 +0100
  Re: [PATCH-vs-togreg 1/2] iio: ina2xx-adc: update the CALIB. register  when RShunt changes "Andrew F. Davis" <afd@ti.com> - 2016-03-11 16:10 +0100
    Re: [PATCH-vs-togreg 1/2] iio: ina2xx-adc: update the CALIB. register  when RShunt changes Marc Titinger <mtitinger@baylibre.com> - 2016-03-11 16:30 +0100
  Re: [PATCH-vs-togreg 1/2] iio: ina2xx-adc: update the CALIB.  register when RShunt changes kbuild test robot <lkp@intel.com> - 2016-03-11 17:10 +0100
  Re: [PATCH-vs-togreg 1/2] iio: ina2xx-adc: update the CALIB. register  when RShunt changes Jonathan Cameron <jic23@kernel.org> - 2016-03-12 10:30 +0100
    Re: [PATCH-vs-togreg 1/2] iio: ina2xx-adc: update the CALIB. register  when RShunt changes Marc Titinger <mtitinger@baylibre.com> - 2016-03-14 10:30 +0100

csiph-web