Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1942696ybz; Sat, 18 Apr 2020 11:47:48 -0700 (PDT) X-Google-Smtp-Source: APiQypLjt6xecfyUyXLRTNommVhogFQa/w6311oy8UIkD6YNvxPYtJ42po89EicvTLAp1id8mlXk X-Received: by 2002:a17:906:1f55:: with SMTP id d21mr8972988ejk.320.1587235668198; Sat, 18 Apr 2020 11:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587235668; cv=none; d=google.com; s=arc-20160816; b=DIeJFkrDb69rRCnhRP05xlvl7BHcqbegjDKOlvmbNC2laOW14kg4AeBfRdaP8ndTFL zm1m6rxc2y0rtelqU8+tu3K3EGWefTRwPTY/FLTS6FSldyKwrAa+abaP0q6z4rLcFzPa vRv3HQEVT0Bi6Bel8mgwCaEi3tFEbMe1fMVpa5g2YHXp7XG/zzHCr+dPIEojJTaG+GKT vrSVvVotfY3lkJiokEeJol8W9dvdBSykicNVicIXaZ5f8qDQqYOueSoN+wlVh696QmpG AI0gUZRvL1mXfjlBv9gcUuvi7ytdn9PLH1vdJO5mEhZGZ8SHJB6vM+CWEhwfHvgPHBCc C1Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=OMbwDKsG/vOO5AAoxKcfs/BIRelllRhJg9DLfQ0cROg=; b=IP6/EIP7QLc37ZD/47W1L1rU5D9kDuqpD3DsixiM/5P3r1MQTadbqUY0XYOIHiQdgi PRKxlRwcLGB32gz1Uch53FeTgNfGhSIRZFqHiCQO6Qv/p91gamKQTqVXPy0jRzD2l7Cr FVNd2wI/bTcuapBc+KTMVsXDXRdg2jbhrbYWvBGMpGc8YxvIN15VV9c+fF0T9hT2urOK 9sSIiJAipTYoHuvXtmaEvcgjgZ8ReeOjl6k+o4Y/gIxfaEsWaCWZL4Z0l5JZ4xWATn1O 1FhHEOjLxcBsuZJaip/sJTlVr5M1AGmZ+Cyx8iNWRufJOfwLOCgKhFIuo6D5dg/YDU3w dLgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=XarPKwUM; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si18823944edn.527.2020.04.18.11.47.24; Sat, 18 Apr 2020 11:47:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=XarPKwUM; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727961AbgDRSrK (ORCPT + 99 others); Sat, 18 Apr 2020 14:47:10 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:52556 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725824AbgDRSrH (ORCPT ); Sat, 18 Apr 2020 14:47:07 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03IIbvof110170; Sat, 18 Apr 2020 18:46:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2020-01-29; bh=OMbwDKsG/vOO5AAoxKcfs/BIRelllRhJg9DLfQ0cROg=; b=XarPKwUMp7eFpqLRIA+E9xQ6HCh/1NBQo9ytJJXL2GWJvERJWITDG8npsHm0A3vtM/23 AK2WjOnJN8Q+JnFN5kmACcUtBxWi6ByISqRcwrOTWuEZd5g1XrMTALImUQKyGTaASrZY c2gTo/F7Rtr2Bb+UaZJkRthP1d7dqHb1BoQFH/ah6DeWtsupMYIUzN7zvmKJF3TetZ6d LxI5gemgWLkr8CdWBGY1u6v3vxXBHogEkemzupqaynwk1+E7X7Nv5chOi5dOmEgXULA4 ejp8E/PSLZXUmu6Thg9uKe42tMoDDyGAOA4OE0x2XWAKh2hrsC/CzOSCEc1P348Xlqib Sw== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 30g6dwr26c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 18 Apr 2020 18:46:05 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03IIbSC4149674; Sat, 18 Apr 2020 18:46:04 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 30fqka563c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 18 Apr 2020 18:46:04 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 03IIjvac015073; Sat, 18 Apr 2020 18:45:57 GMT Received: from anon-dhcp-153.1015granger.net (/68.61.232.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 18 Apr 2020 11:45:57 -0700 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH 6/9] nfsd: fix empty-body warning in nfs4state.c From: Chuck Lever In-Reply-To: <20200418184111.13401-7-rdunlap@infradead.org> Date: Sat, 18 Apr 2020 14:45:55 -0400 Cc: LKML , Linus Torvalds , Andrew Morton , Al Viro , linux-fsdevel@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, Bruce Fields , Linux NFS Mailing List , Johannes Berg , Dan Williams , Vishal Verma , Dave Jiang , linux-nvdimm@lists.01.org, "Martin K. Petersen" , linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, Zzy Wysm Content-Transfer-Encoding: quoted-printable Message-Id: References: <20200418184111.13401-1-rdunlap@infradead.org> <20200418184111.13401-7-rdunlap@infradead.org> To: Randy Dunlap X-Mailer: Apple Mail (2.3445.104.11) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9595 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 spamscore=0 mlxscore=0 malwarescore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004180156 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9595 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 priorityscore=1501 suspectscore=0 mlxlogscore=999 clxscore=1011 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004180156 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > On Apr 18, 2020, at 2:41 PM, Randy Dunlap = wrote: >=20 > Fix gcc empty-body warning when -Wextra is used: >=20 > ../fs/nfsd/nfs4state.c:3898:3: warning: suggest braces around empty = body in an =E2=80=98else=E2=80=99 statement [-Wempty-body] >=20 > Signed-off-by: Randy Dunlap > Cc: Linus Torvalds > Cc: Andrew Morton > Cc: "J. Bruce Fields" > Cc: Chuck Lever > Cc: linux-nfs@vger.kernel.org I have a patch in my queue that addresses this particular warning, but your change works for me too. Acked-by: Chuck Lever Unless Bruce objects. > --- > fs/nfsd/nfs4state.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > --- linux-next-20200417.orig/fs/nfsd/nfs4state.c > +++ linux-next-20200417/fs/nfsd/nfs4state.c > @@ -34,6 +34,7 @@ >=20 > #include > #include > +#include > #include > #include > #include > @@ -3895,7 +3896,7 @@ nfsd4_setclientid(struct svc_rqst *rqstp > copy_clid(new, conf); > gen_confirm(new, nn); > } else /* case 4 (new client) or cases 2, 3 (client reboot): */ > - ; > + do_empty(); > new->cl_minorversion =3D 0; > gen_callback(new, setclid, rqstp); > add_to_unconfirmed(new); -- Chuck Lever