Re: [PATCH linux v2 2/2] drivers: hwmon: hwmon driver for ASPEED AST2400/2500 PWM and Fan tach controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi Jaghathiswari,

[auto build test WARNING on hwmon/hwmon-next]
[also build test WARNING on v4.10-rc5 next-20170125]
[cannot apply to linux/master]
[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/Jaghathiswari-Rankappagounder-Natarajan/Documentation-dt-bindings-Document-bindings-for-ASPEED-AST2400-AST2500-PWM-and-Fan-tach-controller-device-driver/20170127-174933
base:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: openrisc-allyesconfig (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/hwmon/aspeed-pwm-tacho.c: In function 'aspeed_get_fan_tach_ch_rpm':
>> drivers/hwmon/aspeed-pwm-tacho.c:492:16: warning: unused variable 'rpm'

vim +/rpm +492 drivers/hwmon/aspeed-pwm-tacho.c

   476		div_l = priv->type_pwm_clock_division_l[type];
   477		if (div_l == 0)
   478			div_l = 1;
   479		else
   480			div_l = div_l * 2;
   481	
   482		tacho_unit = priv->type_fan_tach_unit[type];
   483		tacho_div = priv->type_fan_tach_clock_division[type];
   484	
   485		tacho_div = 0x4 << (tacho_div * 2);
   486		return clk / (clk_unit * div_h * div_l * tacho_div * tacho_unit);
   487	}
   488	
   489	static u32 aspeed_get_fan_tach_ch_rpm(struct aspeed_pwm_tacho_data *priv,
   490					      u8 fan_tach_ch)
   491	{
 > 492		u32 raw_data, rpm, tach_div, clk_source, timeout = 0, sec, val;
   493		u8 fan_tach_ch_source, type;
   494	
   495		regmap_write(priv->regmap, ASPEED_PTCR_TRIGGER, 0);
   496		regmap_write(priv->regmap, ASPEED_PTCR_TRIGGER, 0x1 << fan_tach_ch);
   497	
   498		fan_tach_ch_source = priv->fan_tach_ch_source[fan_tach_ch];
   499		type = priv->pwm_port_type[fan_tach_ch_source];
   500	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux