Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp352744imm; Wed, 3 Oct 2018 17:46:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV619CT35HxohVX+0IDHwzWTGBKmjHqbX1gQgPsdbh/09mQd5N1u/l7GL4UUTcEhx5OeRQgom X-Received: by 2002:a17:902:b712:: with SMTP id d18-v6mr4060730pls.53.1538614000359; Wed, 03 Oct 2018 17:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538614000; cv=none; d=google.com; s=arc-20160816; b=d92iiAXdLJezxxrb87jNI+dR+vLxl9BubOI5MFx9/9c9m35jsUJBlIFt2lWBROlmGz vSUh3f4lS2us8Jh5PkaB1NnLFev98b53HFLCnaNl00G09mRcGsp7QcMuLK4b0um2Zb9X IYq7LaQPsUM+L+coM8TvB1Zs1JwjBDYTDp4I6LknflT2fgI45a5X3GPFBZilBseR3GhS uAdZxk5PQKmWdNN+gnBOqVDrwJpwXPq3HbC1FeVJtWkYloflW/VSieNV/n7jbqPlwZSz Yre+sMjNJjPtT7v5iZ2PLLhYCdtjWYJttBjlfhWUrYu13eGKMuhqIWkLoEudnPeJE9RZ ecJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jnQZVLQsmgxBTAg6RNK+D3O2ANuXsTjuwKTxfu1Su0M=; b=Y4L5q2Ved6kCCrOs6JXGJ6LupCQQUdea4vbSqzazmt44Gq+/cv1aw2f2z9O9rP73UV SK2SRSZ4R7YtOsi1/OJSLy2lANjRE3hvzqN0NaaxZUu/uuJ/x7BA10d/pvLX71HW8UR7 S1UeJi9Lnk37BL2BBAngRr9yO5NippniHAjLy0r8aYWgJWSrpTnD2HjbMO1118OKoJJD v/EAiacgSJvigXk8+O7ahfwfBnVuheQDxq6y8pDVuaBoVyAH2RlRKwqKrnZrytLHFD7H l5slItkvzfvcU2DUSTo/Ln7gxK8ARLNls1/KtOvlNWAghfzdZErwm2ZVBJEpUrqldh3H ikBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w134-v6si3556862pfd.55.2018.10.03.17.46.24; Wed, 03 Oct 2018 17:46:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727225AbeJDHhF (ORCPT + 99 others); Thu, 4 Oct 2018 03:37:05 -0400 Received: from fieldses.org ([173.255.197.46]:58174 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbeJDHhF (ORCPT ); Thu, 4 Oct 2018 03:37:05 -0400 Received: by fieldses.org (Postfix, from userid 2815) id AB5B122BE; Wed, 3 Oct 2018 20:46:19 -0400 (EDT) Date: Wed, 3 Oct 2018 20:46:19 -0400 From: "J. Bruce Fields" To: "Gustavo A. R. Silva" Cc: Jeff Layton , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nfsd: fix fall-through annotations Message-ID: <20181004004619.GL17517@fieldses.org> References: <20181002100848.GA31166@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181002100848.GA31166@embeddedor.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks, applying.--b. On Tue, Oct 02, 2018 at 12:08:48PM +0200, Gustavo A. R. Silva wrote: > Replace "fallthru" with a proper "fall through" annotation. > > Also, add an annotation were it is expected to fall through. > > These fixes are part of the ongoing efforts to enabling > -Wimplicit-fallthrough > > Signed-off-by: Gustavo A. R. Silva > --- > fs/nfsd/vfs.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c > index d74583f..2751976 100644 > --- a/fs/nfsd/vfs.c > +++ b/fs/nfsd/vfs.c > @@ -1407,6 +1407,7 @@ do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, > *created = 1; > break; > } > + /* fall through */ > case NFS4_CREATE_EXCLUSIVE4_1: > if ( d_inode(dchild)->i_mtime.tv_sec == v_mtime > && d_inode(dchild)->i_atime.tv_sec == v_atime > @@ -1415,7 +1416,7 @@ do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, > *created = 1; > goto set_attr; > } > - /* fallthru */ > + /* fall through */ > case NFS3_CREATE_GUARDED: > err = nfserr_exist; > } > -- > 2.7.4