From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932654AbdBGXJS (ORCPT ); Tue, 7 Feb 2017 18:09:18 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56315 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754300AbdBGXJP (ORCPT ); Tue, 7 Feb 2017 18:09:15 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 07 Feb 2017 17:11:25 -0600 From: eajames To: "Edward A. James" Cc: linux@roeck-us.net, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, jdelvare@suse.com, corbet@lwn.net, mark.rutland@arm.com, robh+dt@kernel.org, wsa@the-dreams.de, andrew@aj.id.au, joel@jms.id.au, benh@kernel.crashing.org Subject: Re: [PATCH linux v6 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs In-Reply-To: <201702070705.HAlnLg64%fengguang.wu@intel.com> References: <201702070705.HAlnLg64%fengguang.wu@intel.com> User-Agent: Roundcube Webmail/1.0.1 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17020723-0008-0000-0000-00000727BFD6 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006575; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000202; SDB=6.00818666; UDB=6.00400083; IPR=6.00596126; BA=6.00005123; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014214; XFM=3.00000011; UTC=2017-02-07 23:09:12 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17020723-0009-0000-0000-00003FB48CA4 Message-Id: <20a5cf57f31190f76db1dbdf018c86ed@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-02-07_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1702070221 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pushing up v7 to fix this compile warning. No other changes. On 2017-02-06 17:21, kbuild test robot wrote: > Hi Edward, > > [auto build test WARNING on hwmon/hwmon-next] > [also build test WARNING on v4.10-rc7 next-20170206] > [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/eajames-linux-vnet-ibm-com/drivers-hwmon-Add-On-Chip-Controller-driver/20170207-043353 > 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/occ/occ.c: In function 'parse_occ_response': >>> drivers/hwmon/occ/occ.c:127:6: warning: unused variable 'rc' > > vim +/rc +127 drivers/hwmon/occ/occ.c > > 111 struct device *dev; > 112 void *bus; > 113 struct occ_bus_ops bus_ops; > 114 struct occ_ops ops; > 115 struct occ_config config; > 116 unsigned long last_updated; > 117 struct mutex update_lock; > 118 struct occ_response response; > 119 bool valid; > 120 u8 *raw_data; > 121 }; > 122 > 123 static int parse_occ_response(struct occ *driver, u16 num_bytes) > 124 { > 125 int b; > 126 int s; > > 127 int rc; > 128 unsigned int offset = SENSOR_BLOCK_OFFSET; > 129 int sensor_type; > 130 u8 num_sensor_blocks; > 131 struct sensor_data_block_header *block; > 132 void *sensors; > 133 struct device *dev = driver->dev; > 134 u8 *data = driver->raw_data; > 135 struct occ_response *resp = &driver->response; > > --- > 0-DAY kernel test infrastructure Open Source Technology > Center > https://lists.01.org/pipermail/kbuild-all Intel > Corporation