Received: by 10.223.164.202 with SMTP id h10csp3469067wrb; Tue, 28 Nov 2017 11:49:45 -0800 (PST) X-Google-Smtp-Source: AGs4zMZeMnNUrd25Vir/QD8z9JEHSIm5bTrt4nevLVR4YSsc+Jkh9bE1/sdRgHT9t3wWGtT/GeKY X-Received: by 10.159.208.67 with SMTP id w3mr278690plz.175.1511898585736; Tue, 28 Nov 2017 11:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511898585; cv=none; d=google.com; s=arc-20160816; b=nA6qh8LA1BgMEQDxNEGQMciljN4jy9qRze9c9N/hJYR7q97K8IOIHsQ1cjrPkJbSxQ fIReRGDb7bKBROXhcQghyPhfakGauLgouWUIJDCykWVfXj2MyXV+9VDLibMzS2XPcOu+ dOWMDOxfVyDOTrXbNcIu2qKLlPaIyPO3FArlnVlToFlPwQJd7UABAuGbQjrlRzZlYy+9 B4mpOpIkvQeWm7hwSkUVddIgqI4o49XZIb+m7hW7UXKgoLURxaFy0LqQgKCOCc8Ixio0 GaIGdBBkrDr4aLDHh3OZQkYkGuyYeIq/cIj5dZFcKIooxFrLYsXEhK6gakrQv+3ICb26 ZOzQ== 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=aKwvDaBfGEaTWvmKjXsv6ss8zanGQEy/nd75mdmF7iI=; b=Wq6Fe15L24Qa3UBpNv8s6Wz88FVqD32hMqMSuD9KzffDd3gFsXQ81lsLOQjPLezvLb gj43Da8P/v06QyK1xcLvCSBVEYpJBwf2AK1SeTMffGY6GF7hVJ8i5W0ZYADWbwNjJ9ne dHHrB/mNGCvG1zUKKplPKHq6kxD0Pw1TwInuA/344kfkmiEI7eXU6z/qT3pp08R4EUrE meGx6Gkkcshk7RnGbGy3jrsof0EtM8GNrA4zv8RPpyiS2WKf0f8wODj8WY5SGkn49nWC BJY7Pa7ZqAiGXcIUi19tlnjETsNFPe+5UPUypQwifiiVGeqVXDNEK+ZYK83PniRuds/T zv9Q== 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 31si25963421plz.611.2017.11.28.11.49.35; Tue, 28 Nov 2017 11:49:45 -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 S1754150AbdK1Tsr (ORCPT + 71 others); Tue, 28 Nov 2017 14:48:47 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:35379 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754087AbdK1Tsp (ORCPT ); Tue, 28 Nov 2017 14:48:45 -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 1eJlqi-000630-49; Tue, 28 Nov 2017 20:47:20 +0100 Date: Tue, 28 Nov 2017 20:48:28 +0100 (CET) From: Thomas Gleixner To: "Gustavo A. R. Silva" cc: Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, LKML , Kees Cook , Linus Torvalds Subject: Re: [PATCH] x86/syscalls: Mark expected switch fall-throughs In-Reply-To: <20171128125331.Horde.XUXRWEiZ7FMJv6yoDylZxN8@gator4166.hostgator.com> Message-ID: References: <20171127235253.GA20384@embeddedor.com> <20171128120512.Horde.1mz61Up1PsNtyHbrjWmK8L7@gator4166.hostgator.com> <20171128122235.Horde.vFP-9ZfAP0f9BFNePB8Z8xi@gator4166.hostgator.com> <20171128125331.Horde.XUXRWEiZ7FMJv6yoDylZxN8@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: > This is what we want to add: > > # Warn about missing switch break or fall-through comment. > KBUILD_CFLAGS += $(call cc-option,-Wimplicit-fallthrough) Can this be made to ignore comments and only accept the proper annotation? > > > I have no idea who came up with that brilliant idea of parsing comments in > > > the code. It's so simple to make this parser completely fail that it's not > > > even funny anymore. > > > > > I don't get why someone would want to do that to himself. :/ Well, it's not intentional. You add any comment and the parser thinks its correct. Or you typo the thing and it fails to recognize. Thanks, tglx From 1585338206098438038@xxx Tue Nov 28 19:12:09 +0000 2017 X-GM-THRID: 1585265423856272058 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread