From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753841AbdK1UI7 (ORCPT ); Tue, 28 Nov 2017 15:08:59 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:35435 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753351AbdK1UI6 (ORCPT ); Tue, 28 Nov 2017 15:08:58 -0500 Date: Tue, 28 Nov 2017 21:08:42 +0100 (CET) From: Thomas Gleixner To: Linus Torvalds cc: Alan Cox , "Gustavo A. R. Silva" , Ingo Molnar , "H. Peter Anvin" , the arch/x86 maintainers , LKML , Kees Cook Subject: Re: [PATCH] x86/syscalls: Mark expected switch fall-throughs In-Reply-To: Message-ID: References: <20171127235253.GA20384@embeddedor.com> <20171128120512.Horde.1mz61Up1PsNtyHbrjWmK8L7@gator4166.hostgator.com> <20171128122235.Horde.vFP-9ZfAP0f9BFNePB8Z8xi@gator4166.hostgator.com> <20171128190032.2b1fa464@alans-desktop> 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Nov 2017, Linus Torvalds wrote: > On Tue, Nov 28, 2017 at 11:00 AM, Alan Cox wrote: > > > > The notation in question has been standard in tools like lint since the > > end of the 1970s > > Yes. > > That said, maybe one option would be to annotate the "case:" and > "default:" statements if that makes people happier. > > IOW, we could do something like > > #define fallthrough __atttibute__((fallthrough)) > > and then write > > fallthrough case 1: > ... > > which while absolutely not traditional, might look and read a bit more > logical to people. I mean, it literally _is_ a "fallthrough case", so > it makes semantic sense. > > Or maybe people hate that kind of "making up new syntax" too? Fine with me. Better than any comment. Thanks, tglx