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

Attachment: .config.gz
Description: application/gzip

Reply via email to