Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1948457ybz; Sat, 18 Apr 2020 11:56:24 -0700 (PDT) X-Google-Smtp-Source: APiQypKk6Wd6tQiDPwW6VlnYz2f7jKJZaSv3kYOdfD66DyvTCynv5RAVIK8zloRISxtbBsWqm2mg X-Received: by 2002:a17:906:131b:: with SMTP id w27mr8838657ejb.230.1587236184224; Sat, 18 Apr 2020 11:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587236184; cv=none; d=google.com; s=arc-20160816; b=wX6QiaEXjvLeknoXBabwRjWWUY2sK/XDTJFKH6KPqbBqQPhNjl+lr08mB16iPlYuVz 3Td2d4NHOkdr20Bo+OWJuF4nOzq5xOeGehNVFbws37BC2Qdvm+Mwuu3h4st0Bjtdib00 0Bohv+MxRgt/dAnXM5PcRsJhgR3//Ia13w9VSmxvHtbBn7vB7gj/IaHoZW9i6TE93/j0 YbUB7HbMjYVytvXwbZ1uDndtwKDZUy7gaOFKfnLawlBGzJt4IcTtbAPj0XwtuYgjnfYX 0AsXiYLduOWmLVWB62n4VF/rDHa3w3/1DM1yCFdKQLFvfH6CzxgQwo8vzyzlMib22jcc PG6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Fw5l4YeyjM9q5bGtc9HETB0eI3KSL+di5A5JibSeUVA=; b=sdPPcR8lj0hHjaf1HAVKzzIuoyRv43e6aTRDt7HDJQH02pXmyEgSNpsC9nmAeGWodN HB6fdq6MTQxkfaYyMLsoS3VmrF4liMxMCITaKr326181q8ZgcTnGVz4Vyjmrmos5bg2F 8Bz5Kj942hp/kNvdiI5acnl17yv1zszA8+IOnR5+1VJQa6w1BPbUZdIvLGn6Rh0fyKhZ ov7sOwlYcMiZO9NK3/tY2n8Aqv77VHKslQoMDESgPtXeETZa7s+NvcmjOIyfsQdN3qD6 pTyYHtal+Kr/mSAtm+oGs1cOCjN4k5IeWykDiLz/9Y3tb8jmsn65vafhTW1IViyraxN5 LabQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZSd4gPvR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m11si8367633edq.373.2020.04.18.11.56.01; Sat, 18 Apr 2020 11:56:24 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZSd4gPvR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727894AbgDRSzm (ORCPT + 99 others); Sat, 18 Apr 2020 14:55:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726307AbgDRSzm (ORCPT ); Sat, 18 Apr 2020 14:55:42 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 147D7C061A0C; Sat, 18 Apr 2020 11:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=Fw5l4YeyjM9q5bGtc9HETB0eI3KSL+di5A5JibSeUVA=; b=ZSd4gPvRX+1EcEyWBtmo2xeq+k YGKz4bmzRQ0lBLMGURF5oh6CYWK4W10L7kKdDnAI5hJvRsl3/cWENuwUZYgrll4QOeY8IG2KAIwKm DmODoHeVwqhNbpPD2mueD4eauFer8yFIuqk42bawnd9he64bV/jQfHVxkRxNmOAMcICHspMdvF49L mwjxdxSsr1vLxgUV9OSBDAPsxY5sxHKI3ovi3k6+D0MPLbEOgd5u2ipYWdww6+1xj13RRsP3BbZTP 5/uu3l5yRFjedkT+1vldVo7jjG4LvH/c3xDAix8dZm74bZ5+P4Sk4RUlA1MpmcdYVcPWYAQRtLCOh CMd3C1UQ==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jPscv-0000Nr-Nv; Sat, 18 Apr 2020 18:55:41 +0000 Subject: Re: [PATCH 2/9] fs: fix empty-body warning in posix_acl.c To: Linus Torvalds Cc: Linux Kernel Mailing List , Andrew Morton , Alexander Viro , linux-fsdevel , Dmitry Torokhov , linux-input@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, "J. Bruce Fields" , Chuck Lever , "open list:NFS, SUNRPC, AND..." , Johannes Berg , Dan Williams , Vishal Verma , Dave Jiang , linux-nvdimm , "Martin K. Petersen" , linux-scsi , target-devel , Zzy Wysm References: <20200418184111.13401-1-rdunlap@infradead.org> <20200418184111.13401-3-rdunlap@infradead.org> From: Randy Dunlap Message-ID: <722a746a-1438-60e3-04b2-c13eda2ad168@infradead.org> Date: Sat, 18 Apr 2020 11:55:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 4/18/20 11:53 AM, Linus Torvalds wrote: > On Sat, Apr 18, 2020 at 11:41 AM Randy Dunlap wrote: >> >> Fix gcc empty-body warning when -Wextra is used: > > Please don't do this. > > First off, "do_empty()" adds nothing but confusion. Now it > syntactically looks like it does something, and it's a new pattern to > everybody. I've never seen it before. > > Secondly, even if we were to do this, then the patch would be wrong: > >> if (cmpxchg(p, ACL_NOT_CACHED, sentinel) != ACL_NOT_CACHED) >> - /* fall through */ ; >> + do_empty(); /* fall through */ > > That comment made little sense before, but it makes _no_ sense now. > > What fall-through? I'm guessing it meant to say "nothing", and > somebody was confused. With "do_empty()", it's even more confusing. > > Thirdly, there's a *reason* why "-Wextra" isn't used. > > The warnings enabled by -Wextra are usually complete garbage, and > trying to fix them often makes the code worse. Exactly like here. OK, no problem. That's why PATCH 0/9 says RFC. Oops. Crap. It was *supposed* to say RFC. :( -- ~Randy