Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5995242ybe; Tue, 17 Sep 2019 17:41:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0JbLOAjcQO9QC8yCjtll8r5mGWGHY4h4Xs14cvZNSlmwHuYbuUGNkn15GgxK0vF/v8fQ/ X-Received: by 2002:aa7:d40d:: with SMTP id z13mr7434042edq.229.1568767278541; Tue, 17 Sep 2019 17:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568767278; cv=none; d=google.com; s=arc-20160816; b=yLRkTxLfeY34aWw/Bu0U5gpZUzrXjgH9qXjP+dAgBbmkdvj5h3Q1p/SV/pUPkBldM8 FMCUyD5N4IyODdNfpcmaaGCTJe///4fFV7Sx3mW6LqCABA+vnEK++00k4L2lsyvL92Oi JRqhnOCWgPLCTaR9Rfb1f9qU6IvGK5/YAVKZKRQEi9Nm4Tlgv51MN6uUBvCmG9a6H4pw 1hb5cA8ty/I7GBqQOOTuUx8AxN1v/jlg/YHuh+H2bSzq1Qr7LfIiG3XKRmOyECU/VLsm XZj98WjcG+N0PVnAKCzAYJs5WUwq+XYq58huXHCXulYQn0lMwjQWAQJ+uF/rHB3ePZiQ 9CrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=92SpztlANcuvPqrDgDnViqFizklZydqmmH30yMAgX+I=; b=KUanLNBviqh8U8c6q/EfpSgOqoz7r0/LzVCftBMunhvg9RgHz+LZUUIMpAyH5kmIXd cQtJjB1aLE6/DWTl5y3HsVHsHms7HJA67Vz9I2wed13NmHJ8abTYh/IedgK2RGpSzcIi 7CSPtAFZHsEJY5fQjrJjUrOOVa6CafDrfW6lFuYdKir/Kv+AuMl2gJmzbLbYwtwkTttg skfM5k4tdzYsmdtlaNA0u76l3Vk7GZv6R9+CzvyBtHlwfoOD2J+x5mjYTFCJPPlXFyLT yuwq7T0K26ifgpNW7lcAAL5LzVDngmN8f35DHjiy8x9dvzgX7h1SFZgj8eDNl5yZxJS0 WxQA== 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 v6si2235537edw.51.2019.09.17.17.40.55; Tue, 17 Sep 2019 17:41:18 -0700 (PDT) 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 S1726663AbfIQW0r (ORCPT + 99 others); Tue, 17 Sep 2019 18:26:47 -0400 Received: from smtprelay0092.hostedemail.com ([216.40.44.92]:50117 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726283AbfIQW0q (ORCPT ); Tue, 17 Sep 2019 18:26:46 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id E206918225B0E; Tue, 17 Sep 2019 22:26:44 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:599:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3872:3873:3874:4321:5007:6120:6742:7903:7904:8531:10004:10400:10471:10848:11232:11658:11914:12050:12114:12297:12663:12740:12760:12895:13019:13069:13161:13229:13255:13311:13357:13439:14096:14097:14659:21080:21433:21627,0,RBL:14.161.9.139:@perches.com:.lbl8.mailshell.net-62.14.241.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:43,LUA_SUMMARY:none X-HE-Tag: bulb69_1c956a5c79822 X-Filterd-Recvd-Size: 2973 Received: from XPS-9350 (unknown [14.161.9.139]) (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA; Tue, 17 Sep 2019 22:26:36 +0000 (UTC) Message-ID: <45dd0d8dffa6718d8cbcd24720e9e39dddb08134.camel@perches.com> Subject: Re: treewide replacement of fallthrough comments with "fallthrough" macro (was Re: [RFC PATCH] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use) From: Joe Perches To: Kees Cook Cc: hpa@zytor.com, Peter Zijlstra , Pavel Machek , Linus Torvalds , Miguel Ojeda , Borislav Petkov , Thomas Gleixner , Ingo Molnar , "Gustavo A . R . Silva" , Arnaldo Carvalho de Melo , Kan Liang , Namhyung Kim , Jiri Olsa , Alexander Shishkin , Shawn Landden , x86@kernel.org, linux-kernel@vger.kernel.org Date: Tue, 17 Sep 2019 15:26:32 -0700 In-Reply-To: <201909161516.A68C8239A@keescook> References: <1d2830aadbe9d8151728a7df5b88528fc72a0095.1564549413.git.joe@perches.com> <20190731171429.GA24222@amd> <765E740C-4259-4835-A58D-432006628BAC@zytor.com> <20190731184832.GZ31381@hirez.programming.kicks-ass.net> <201907311301.EC1D84F@keescook> <201908151049.809B9AFBA9@keescook> <201909161516.A68C8239A@keescook> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.32.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-09-16 at 15:19 -0700, Kees Cook wrote: > On Thu, Aug 15, 2019 at 11:15:53AM -0700, Kees Cook wrote: > > With that out of the way, yes, let's do a mass conversion. As mentioned > > before, I think "fallthrough;" should be used here (to match "break;"). > > Let's fork the C language. :) > > FWIW, last week I asked Linus at the maintainer's summit which he > preferred ("__fallthrough" or "fallthrough") and he said "fallthrough". Nice. I think that's better style/taste. > Joe, if you've still got the series ready, do you want to send it for > this merge window before -rc1 gets cut? The first bits that add fallthrough and converts the one existing use of fallthrough as a label can be sent now. I'll do that in a few days as I'm not able to do that right now. Sending any actual comment conversion patches before -rc1 might require changes in already queued up and tested patches I do think a scripted conversion by major subsystem/directory might be a better mechanism than individual patches, especially if applied directly before releasing what will be -rc1.