From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754221AbdK1UAA (ORCPT ); Tue, 28 Nov 2017 15:00:00 -0500 Received: from smtprelay0070.hostedemail.com ([216.40.44.70]:43693 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753126AbdK1T76 (ORCPT ); Tue, 28 Nov 2017 14:59:58 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2560:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4605:5007:8985:9025:10004:10400:10848:11232:11658:11914:12043:12740:12760:12895:13069:13311:13357:13439:14096:14097:14181:14659:14721:21080:21212:21451:21627:30041:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: nest61_1c8ce693da645 X-Filterd-Recvd-Size: 2369 Message-ID: <1511899194.19952.43.camel@perches.com> Subject: Re: [PATCH] x86/syscalls: Mark expected switch fall-throughs From: Joe Perches To: Linus Torvalds , Alan Cox Cc: Thomas Gleixner , "Gustavo A. R. Silva" , Ingo Molnar , "H. Peter Anvin" , the arch/x86 maintainers , LKML , Kees Cook Date: Tue, 28 Nov 2017 11:59:54 -0800 In-Reply-To: References: <20171127235253.GA20384@embeddedor.com> <20171128120512.Horde.1mz61Up1PsNtyHbrjWmK8L7@gator4166.hostgator.com> <20171128122235.Horde.vFP-9ZfAP0f9BFNePB8Z8xi@gator4166.hostgator.com> <20171128190032.2b1fa464@alans-desktop> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2017-11-28 at 11:10 -0800, 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? I don't https://lkml.org/lkml/2017/2/10/485