Received: by 10.223.164.202 with SMTP id h10csp3492387wrb; Tue, 28 Nov 2017 12:11:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMY7oWkSwMl9ky/s1df2WSijN+M67X3s6chMWzIRNzAr6SgREpV54K+/YiPo5EilgUnLisj8 X-Received: by 10.98.195.26 with SMTP id v26mr324320pfg.209.1511899885371; Tue, 28 Nov 2017 12:11:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511899885; cv=none; d=google.com; s=arc-20160816; b=ZvNpFWxZz9TSGr+/vkxkrPj3P7Psv8evfuW8GZBhaSbFvV7LI3QIr7c6xJv4/v1/82 D1DqavIChfEPrJ8eYcm9byUniXsxTSivZxZc4/qcbaA2cxVf9DcRI2mVW4MUACXzuNqC vhDsbhfVbwM3zvB41aT/h2pIpZAH6xBhGm6gbV2n4BPio0xRd5w3Fz1Ick45ijJ5zxQ/ S9d8o2siiyZR7ITHQEFsePsf2UpAqGmtrMxcRzMqOf/oRvphh4kOSbNxIppTC/kULBij MDTntauqvybPfckvwrCmb3HqzNTBnSUfHaIGu3YiuWRKXPupqzgfuFB3IDB5bu82t+qP Sjtg== 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=IrcvjAVbn2T5dPXgSiP9CWFefSwZd1U1eppugR+OzD4=; b=Hm1XVZLnOfTN0CdB8E59Wh6LBZEShb/43UwFcpWSXo9xoFs8SPb5T+QHvNq9os2lkW M7XfPFD8sKsVP7RbRbjXwEC9L1FD+YG+Vbymp8P8rYsXm78ExmnJZQHdwZqwoaHhChtl xfJ2Ezr/bK2pT9adiv9mH5XH1mtx8TNA+BvCVPAhSZmRm9P7MuKeDtnSxPWjarey/C7c MCI4NIzbIveBwRio5LDop1Gfkq2BsSIQ5kWBX6cY39NBuRL8sq4CkgP1iaZn69MnqlhL 1VaHUMtwYr7jwrzjhx6ZZm8sEja1Xdr9bD17O7wlFNvyYPkPCMaZPH9g9T4mFfAgk/iw At5w== 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 a12si25388358pgd.252.2017.11.28.12.11.15; Tue, 28 Nov 2017 12:11:25 -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 S1753785AbdK1UI7 (ORCPT + 70 others); 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 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 1eJmAI-0006EH-3I; Tue, 28 Nov 2017 21:07:34 +0100 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 Precedence: bulk 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 From 1585341355527698265@xxx Tue Nov 28 20:02:13 +0000 2017 X-GM-THRID: 1585265423856272058 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread