devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, openbmc@lists.ozlabs.org, linux@roeck-us.net,
	joel@jms.id.au, jdelvare@suse.com, linux-hwmon@vger.kernel.org,
	corbet@lwn.net, linux-doc@vger.kernel.org, robh+dt@kernel.org,
	mark.rutland@arm.com, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Jaghathiswari Rankappagounder Natarajan <jaghu@google.com>
Subject: Re: [PATCH linux v2 2/2] drivers: hwmon: hwmon driver for ASPEED AST2400/2500 PWM and Fan tach controller
Date: Fri, 27 Jan 2017 21:51:52 +0800	[thread overview]
Message-ID: <201701272104.x1D8qLTY%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170127093400.28904-3-jaghu@google.com>

[-- Attachment #1: Type: text/plain, Size: 2243 bytes --]

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 #2: .config.gz --]
[-- Type: application/gzip, Size: 40216 bytes --]

      reply	other threads:[~2017-01-27 13:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20170127093400.28904-1-jaghu@google.com>
2017-01-27  9:33 ` [PATCH linux v2 1/2] Documentation: dt-bindings: Document bindings for ASPEED AST2400/AST2500 PWM and Fan tach controller device driver Jaghathiswari Rankappagounder Natarajan
2017-02-01 14:58   ` Rob Herring
2017-02-14  6:12     ` Jaghathiswari Rankappagounder Natarajan
2017-01-27  9:34 ` [PATCH linux v2 2/2] drivers: hwmon: hwmon driver for ASPEED AST2400/2500 PWM and Fan tach controller Jaghathiswari Rankappagounder Natarajan
2017-01-27 13:51   ` kbuild test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201701272104.x1D8qLTY%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=jaghu@google.com \
    --cc=jdelvare@suse.com \
    --cc=joel@jms.id.au \
    --cc=kbuild-all@01.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=mark.rutland@arm.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).