[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201611021525.CyIcgfld%fengguang.wu@intel.com>
Date: Wed, 2 Nov 2016 15:25:11 +0800
From: kbuild test robot <lkp@...el.com>
To: Rama Krishna Phani A <rphani@...eaurora.org>
Cc: kbuild-all@...org, linux-iio@...r.kernel.org, jic23@...nel.org,
linux-arm-msm@...r.kernel.org, smohanad@...eaurora.org,
mgautam@...eaurora.org,
Rama Krishna Phani A <rphani@...eaurora.org>,
Hartmut Knaack <knaack.h@....de>,
Lars-Peter Clausen <lars@...afoo.de>,
Peter Meerwald-Stadler <pmeerw@...erw.net>,
Julia Lawall <Julia.Lawall@...6.fr>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH V1]iio: adc: spmi-vadc: Changes to support different
scaling
Hi Rama,
[auto build test WARNING on iio/togreg]
[also build test WARNING on v4.9-rc3 next-20161028]
[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/Rama-Krishna-Phani-A/iio-adc-spmi-vadc-Changes-to-support-different-scaling/20161025-141253
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: openrisc-allmodconfig (attached as .config)
compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
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/iio/adc/qcom-spmi-vadc.c: In function 'vadc_scale_fn':
>> drivers/iio/adc/qcom-spmi-vadc.c:632:4: warning: comparison of distinct pointer types lacks a cast
drivers/iio/adc/qcom-spmi-vadc.c:646:4: warning: comparison of distinct pointer types lacks a cast
vim +632 drivers/iio/adc/qcom-spmi-vadc.c
616 int ret;
617
618 switch (prop->scale_function) {
619
620 case SCALE_DEFAULT:
621 vadc_scale_calib(vadc, adc_code, prop, &voltage);
622
623 prescale = &vadc_prescale_ratios[prop->prescale];
624 voltage = voltage * prescale->den;
625 return div64_s64(voltage, prescale->num);
626
627 case SCALE_THERM_100K_PULLUP:
628 case SCALE_XOTHERM:
629 vadc_scale_calib(vadc, adc_code, prop, &voltage);
630
631 if (prop->calibration == VADC_CALIB_ABSOLUTE)
> 632 do_div(voltage, 1000);
633
634 vadc_map_voltage_temp(adcmap_100k_104ef_104fb,
635 ARRAY_SIZE(adcmap_100k_104ef_104fb),
636 voltage, &result);
637 result *= 1000;
638 return result;
639
640 case SCALE_PMIC_THERM:
---
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/gzip" (38716 bytes)
Powered by blists - more mailing lists