Received: by 10.223.164.202 with SMTP id h10csp3565710wrb; Tue, 28 Nov 2017 13:27:26 -0800 (PST) X-Google-Smtp-Source: AGs4zMZHQX+mx0Hk/81iascFi74o8RkKDW5SDvRiBaFmN52UEvFuQ2N67pwB74BvkSgGZq8+vO8F X-Received: by 10.101.67.71 with SMTP id k7mr529456pgq.20.1511904446677; Tue, 28 Nov 2017 13:27:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511904446; cv=none; d=google.com; s=arc-20160816; b=s7ou1tzpBRTWmpGxpwZmmcZvM186q7t8zjZf8WLlGX/duLQvBAlz7Xb7+UEluE/3Pd Y5VuCrJsqgvIBfOvgrm8zyhKLu7NsqZoncGpdCw4e7smo/7054ZgcB198DgQWo0XUh+w 6+SOBjgWCnkzDyQp5lO+v3AhiSGMkim8ZoN3WyZC09f1vVPRrTO35HuOubJRvWWn6+3b b7RW53iD07tl2u/UYcaPbmuCOap1uV6SIhnd5J2GoaxKyll6Dw6uOVPFOcmlO7D0RJCz ygwPhtNWiCp7jTL5rN/mGAduFBNUR0EF2BLR4nWlj+7/RH0U2yjkkJ4UiPOeyb1Atv44 Q4nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=P4EogoBtIhIXNEkLfnre7Q1CVnXzRr/Sbou+PpB3w8I=; b=aMr45XxhZJhoQ+BbSXqe56HU1mrbG9000J/9Re9JtA1c/B6k+Xcnph9SrxRGDDtB0u ZXB0zv+6Ps/YKOl3OxQzlNh1RrswTSN1chy6fplZne48v4gqHPzZZw+sHrATKWZD3o4h lw9Dr/8+Rn3urD7sJMvIlLgzne6HOOB38G0GdHZJL2LdEXBs8DykVs31Odzg9nVlDtU0 U3rug7RNQvM0tV/KFwlVzejt2cJ4B3Bxs0IPaZPYW5A8jrcsll7WMww1WelfyzTevvr7 ATqlZFrkHqI/f8QE49KfwO5UN3lKLOnD+pBjJmNDqbgmQBcJkHTl6GuoAo4bqR60wkq4 eJ3w== 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 s36si59691pld.67.2017.11.28.13.27.15; Tue, 28 Nov 2017 13:27:26 -0800 (PST) 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 S1751908AbdK1V0B (ORCPT + 70 others); Tue, 28 Nov 2017 16:26:01 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:35781 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350AbdK1V0A (ORCPT ); Tue, 28 Nov 2017 16:26:00 -0500 Received: from p4fea5f09.dip0.t-ipconnect.de ([79.234.95.9] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1eJnMp-0007SY-8d; Tue, 28 Nov 2017 22:24:35 +0100 Date: Tue, 28 Nov 2017 22:25:40 +0100 (CET) From: Thomas Gleixner To: "Gustavo A. R. Silva" cc: Alan Cox , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, LKML , Kees Cook Subject: Re: [PATCH] x86/syscalls: Mark expected switch fall-throughs In-Reply-To: <20171128142532.Horde.i2oBtHDOaD7XV1M3yAL7rga@gator4166.hostgator.com> Message-ID: References: <20171127235253.GA20384@embeddedor.com> <20171128120512.Horde.1mz61Up1PsNtyHbrjWmK8L7@gator4166.hostgator.com> <20171128122235.Horde.vFP-9ZfAP0f9BFNePB8Z8xi@gator4166.hostgator.com> <20171128190032.2b1fa464@alans-desktop> <20171128142532.Horde.i2oBtHDOaD7XV1M3yAL7rga@gator4166.hostgator.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Nov 2017, Gustavo A. R. Silva wrote: > The thing about taking 'any comment' as valid is false if you add the > following to your Makefile: > > KBUILD_CFLAGS += $(call cc-option,-Wimplicit-fallthrough) > > This option takes the following comments as valid: > > /* fall through */ > /* Fall through */ > /* fall through - ... */ > /* Fall through - ... */ > > Comments as fallthru, fallthrough, FALLTHRU are invalid. > > And of course if you intentionally change the option to: > > KBUILD_CFLAGS += $(call cc-option,-Wimplicit-fallthrough=1) > > it means that you obviously want to ignore any warning. So I have to ask WHY this information was not in the changelog of the patch in question: 1) How it works 2) Why comments have been chosen over macros > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. It's not a reviewers job to chase that information down. While I can understand that the comments are intentional due to existing tools, I still prefer the macro/annotation. But I'm not religious about it when there is common consensus. :) Thanks, tglx From 1585343630921733857@xxx Tue Nov 28 20:38:23 +0000 2017 X-GM-THRID: 1585265423856272058 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread