mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Tom Levens <tom.levens@cern.ch>
Cc: kbuild-all@01.org, Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Jean Delvare <jdelvare@suse.com>,
	Guenter Roeck <linux@roeck-us.net>,
	Mike Looijmans <mike.looijmans@topic.nl>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v3 3/3] hwmon: ltc2990: support all measurement modes
Date: Wed, 5 Jul 2017 06:45:21 +0800	[thread overview]
Message-ID: <201707050650.7AEacsRq%fengguang.wu@intel.com> (raw)
In-Reply-To: <1499056140-6064-3-git-send-email-tom.levens@cern.ch>

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

Hi Tom,

[auto build test WARNING on hwmon/hwmon-next]
[also build test WARNING on v4.12 next-20170704]
[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/Tom-Levens/hwmon-ltc2990-refactor-value-conversion/20170705-050920
base:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: x86_64-randconfig-x010-201727 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/hwmon/ltc2990.c: In function 'ltc2990_attrs_visible':
>> drivers/hwmon/ltc2990.c:164:40: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
        ltc2990_attrs_ena_0[data->mode[0]] &
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        ltc2990_attrs_ena_1[data->mode[1]];
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  

vim +164 drivers/hwmon/ltc2990.c

   148		if (unlikely(ret < 0))
   149			return ret;
   150	
   151		return snprintf(buf, PAGE_SIZE, "%d\n", value);
   152	}
   153	
   154	static umode_t ltc2990_attrs_visible(struct kobject *kobj,
   155					     struct attribute *a, int n)
   156	{
   157		struct device *dev = container_of(kobj, struct device, kobj);
   158		struct ltc2990_data *data = dev_get_drvdata(dev);
   159		struct device_attribute *da =
   160				container_of(a, struct device_attribute, attr);
   161		struct sensor_device_attribute *attr = to_sensor_dev_attr(da);
   162	
   163		int attrs_mask = LTC2990_IN0 | LTC2990_TEMP1 |
 > 164				 ltc2990_attrs_ena_0[data->mode[0]] &
   165				 ltc2990_attrs_ena_1[data->mode[1]];
   166	
   167		if (attr->index & attrs_mask)
   168			return a->mode;
   169	
   170		return 0;
   171	}
   172	

---
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: 27950 bytes --]

  parent reply	other threads:[~2017-07-04 22:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-03  4:28 [PATCH v3 1/3] hwmon: ltc2990: refactor value conversion Tom Levens
2017-07-03  4:28 ` [PATCH v3 2/3] hwmon: ltc2990: add devicetree binding Tom Levens
2017-07-07 14:24   ` Rob Herring
2017-07-03  4:29 ` [PATCH v3 3/3] hwmon: ltc2990: support all measurement modes Tom Levens
2017-07-03  6:29   ` Mike Looijmans
2017-07-03 17:09     ` Guenter Roeck
2017-07-11 22:00       ` Tom Levens
2017-07-04 22:45   ` kbuild test robot [this message]
2017-07-08 15:45 ` [v3,1/3] hwmon: ltc2990: refactor value conversion Guenter Roeck
2017-07-11 22:03   ` Tom Levens
2017-07-12  0:39     ` Guenter Roeck

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=201707050650.7AEacsRq%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jdelvare@suse.com \
    --cc=kbuild-all@01.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=mark.rutland@arm.com \
    --cc=mike.looijmans@topic.nl \
    --cc=robh+dt@kernel.org \
    --cc=tom.levens@cern.ch \
    /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

all inboxes | Powered by JetHome®