Received: by 10.223.164.202 with SMTP id h10csp3518492wrb; Tue, 28 Nov 2017 12:38:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMYRTXhYH7uf7hzO33G0trf+Zmq3R7K/tMBHgYXUmNS7CcWGzKLJZjCkWw0utFx3wiWllMih X-Received: by 10.101.80.205 with SMTP id s13mr415651pgp.68.1511901503840; Tue, 28 Nov 2017 12:38:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511901503; cv=none; d=google.com; s=arc-20160816; b=vcteO5JPzCwN6EnvuMKWeI/ITUJP3ZTS/rky7XqRrHufJYajjtowpkBzzvWRQVUsB+ ubiRg3JnZ6+z/SAYViJ8c4bdvqM49uo/33qoYtefWHpNBtJhfzXScgCK4Chy8lzGbAuj V3bRwgsmpZMl/9fmyxaFwSTCG/p5fiA9e9dUeq6hdrRCyu3zSehl/GfUvgQfZY1VryDW TcYhix19YhQp/XguFhnd5TSGz+4X3OVCe2cpoNZhffqzYn8abOvzJzHKzuBim25v4RM2 5RGAjDKBzB3nDqtQRQBISdHjbiiQsHCP/8fWBewjYo9VjxD2ve1m1HDSbv2XkNPtLEqE ngBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :user-agent:in-reply-to:references:subject:cc:to:from:message-id :date:arc-authentication-results; bh=bKA4tTM0ZhKDc6aKoSuBDvDNWFgNXqpsnoY3//l+Zgg=; b=DGEnB0Y8/Up0LGtHratCKy69szrCuz4x8c/iZ2stFRahCDb/TJUu3sl4MCAW6ZBYP4 ID2eRQg9Q9jWfZtr83vNZrpKvPrfIVZ5HNx36MdzziI1n+IYeYHEapBZ+aiO+iJTSSCY uoZG7YXLmnYvGBFzxZCzlea7jHvDVI8Z73DuFwfEpcr3q+96QDYDR3Z3RcZz74zZ3nko 1ije4sFRKeRCJVP1AUvZNVoqqH7qDVywpQ4xx6pQwuRafX3KqrjghOLLHB2vGHhqCBeQ XE8QFJXrIR28KvoZaPwnyEHw2sbc488IcvUu1uYVuILIwTXXX2cL9c+0fTe5F3jFvCs0 a3Cg== 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 p33si11831pld.453.2017.11.28.12.38.13; Tue, 28 Nov 2017 12:38:23 -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 S1754261AbdK1UhS (ORCPT + 70 others); Tue, 28 Nov 2017 15:37:18 -0500 Received: from gateway31.websitewelcome.com ([192.185.144.219]:18725 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751822AbdK1UhP (ORCPT ); Tue, 28 Nov 2017 15:37:15 -0500 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 22DE9634E1 for ; Tue, 28 Nov 2017 14:37:15 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id Jmd1eVZj85b6TJmd1efsg1; Tue, 28 Nov 2017 14:37:15 -0600 Received: from gator4166.hostgator.com ([108.167.133.22]:39212) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1eJmd0-000J1W-Jk; Tue, 28 Nov 2017 14:37:14 -0600 Received: from 189.175.122.225 ([189.175.122.225]) by gator4166.hostgator.com (Horde Framework) with HTTPS; Tue, 28 Nov 2017 14:37:14 -0600 Date: Tue, 28 Nov 2017 14:37:14 -0600 Message-ID: <20171128143714.Horde.2uPOfQfKWjP7aGfH2w0lflN@gator4166.hostgator.com> From: "Gustavo A. R. Silva" To: Linus Torvalds Cc: Alan Cox , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , the arch/x86 maintainers , LKML , Kees Cook Subject: Re: [PATCH] x86/syscalls: Mark expected switch fall-throughs References: <20171127235253.GA20384@embeddedor.com> <20171128120512.Horde.1mz61Up1PsNtyHbrjWmK8L7@gator4166.hostgator.com> <20171128122235.Horde.vFP-9ZfAP0f9BFNePB8Z8xi@gator4166.hostgator.com> <20171128190032.2b1fa464@alans-desktop> In-Reply-To: User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 108.167.133.22 X-Source-L: Yes X-Exim-ID: 1eJmd0-000J1W-Jk X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: gator4166.hostgator.com [108.167.133.22]:39212 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 9 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Linus Torvalds : > 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. > This is elegant. The thing is that this makes it appear as if there is an unconditional fall through. It is not uncommon to have multiple break statements in the same case block and to fall through also. Thanks -- Gustavo A. R. Silva From 1585343591506835175@xxx Tue Nov 28 20:37:45 +0000 2017 X-GM-THRID: 1585265423856272058 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread