From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752458AbdFUNax (ORCPT ); Wed, 21 Jun 2017 09:30:53 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:44849 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752392AbdFUNat (ORCPT ); Wed, 21 Jun 2017 09:30:49 -0400 Date: Wed, 21 Jun 2017 06:30:40 -0700 From: "Paul E. McKenney" To: Stephen Rothwell Cc: Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build warning after merge of the rcu tree Reply-To: paulmck@linux.vnet.ibm.com References: <20170621164806.2caba20a@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170621164806.2caba20a@canb.auug.org.au> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 17062113-2213-0000-0000-000001E3B169 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007266; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000214; SDB=6.00877817; UDB=6.00437329; IPR=6.00657958; BA=6.00005434; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015909; XFM=3.00000015; UTC=2017-06-21 13:30:42 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17062113-2214-0000-0000-00005696C035 Message-Id: <20170621133040.GT3721@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-21_03:,, 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-1703280000 definitions=main-1706210228 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 21, 2017 at 04:48:06PM +1000, Stephen Rothwell wrote: > Hi Paul, > > After merging the rcu tree, today's linux-next build (x86_64 allnoconfig) > produced this warning: > > kernel/cpu.c: In function 'boot_cpu_state_init': > kernel/cpu.c:1778:6: warning: unused variable 'cpu' [-Wunused-variable] > int cpu; > ^ > > Introduced by commit > > faeb334286b7 ("rcu: Migrate callbacks earlier in the CPU-offline timeline") Hello, Stephen, Apologies, should be fixed now -- added a __maybe_unused. But I didn't realize you did SMP=n builds! ;-) Thanx, Paul