Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2412810ima; Mon, 22 Oct 2018 09:18:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV633zvEOs4qaO3QFdeRo3/OHzhjctsLcFYULgysl/Gl1d/uXxQNOMMjVr4UI0ZW66//m1Wsk X-Received: by 2002:a17:902:848f:: with SMTP id c15-v6mr43982664plo.119.1540225114812; Mon, 22 Oct 2018 09:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540225114; cv=none; d=google.com; s=arc-20160816; b=KPU0rbAGg/FX31DRo1KxzkOn6gzPsNdghU5mp3axTSrom9GPCrwFrREjNRTwW03ATu AL6PMn+di0TxS2+Hqs8sZEMkkNrBUbojgOL2VodZckDkKjDx8UDPkV8kujfmXYWvxfr5 e8W0n6KHvJMFaVxqV5ho2UpFcoHhhzpD2OSQw0rs/UUEnjPRW0gV6lHOS3m7nXz6mkMr KWb/Wl1fspOVYR0RmParcgTYrrpg4qTOZPpsvR24bMVJY8wL9Y4Ufv6hl0orwY+h4yHH 7XxEfCvc7WyXde6JQGIaM4xHbHBzna8EZaIP+KEUza6QAScB3g1wpt37hWgQ08ulQkUo I5mg== 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=XH3kbnsqYwMftBMhoa5oJTYuLx9haEukbB1I27+MsLI=; b=zKXz8YEyTalbhMM1GElDBHHabTWao1BVFA0ZCoPOkwH2skNmJ9BqWYaZTg2/SXG++i lPJW2b82W58o96IIoXPnA+6sVLI98Ji8q0d/AkDKv5CvPQRLfFlGVbPwqM+vlLFpR/jQ bfqlARDo9x64r/SNrH/2S4+gu18SLU9GcbkJ0z+JyYOsJeenRap3uEClvkereD2I4w68 qGk98NuAI2Ixfp3221D96ffENzpmx1265y/MF4JST5VSm0+nMuerCsylcSSNLeiuK1yy A2P0QDUDKp0mHyEBb34dy12kKaYZkR64hH8WFAawITRWyzKeXkzJri8057Z2S1av+GCa uZgA== 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 g5-v6si35037696pgl.419.2018.10.22.09.17.49; Mon, 22 Oct 2018 09:18:34 -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 S1728283AbeJWAH0 (ORCPT + 99 others); Mon, 22 Oct 2018 20:07:26 -0400 Received: from smtprelay0215.hostedemail.com ([216.40.44.215]:46205 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727590AbeJWAHZ (ORCPT ); Mon, 22 Oct 2018 20:07:25 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 8891F180A8126; Mon, 22 Oct 2018 15:48:18 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: X-HE-Tag: house85_2a8d16fda765e X-Filterd-Recvd-Size: 4498 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Mon, 22 Oct 2018 15:48:12 +0000 (UTC) Message-ID: <93bda268c5f55571b47c7f283c027454bbcb8469.camel@perches.com> Subject: Re: [PATCH 2/2] Compiler Attributes: auxdisplay: panel: use __fallthrough From: Joe Perches To: Miguel Ojeda Cc: Greg KH , linux-kernel , Dan , Andreas Dilger , Masahiro Yamada , Michal Marek , Steven Rostedt , Mauro Carvalho Chehab , Olof Johansson , Konstantin Ryabitsev , David Miller , Andrey Ryabinin , Kees Cook , Thomas Gleixner , Ingo Molnar , Paul Lawrence , Sandipan Das , Andrey Konovalov , David Woodhouse , Will Deacon , Philippe Ombredanne , Paul Burton , David Rientjes , Willy Tarreau , Martin Sebor , Christopher Li , Jonathan Corbet , Ted Ts'o , Geert Uytterhoeven , Rasmus Villemoes , Arnd Bergmann , Dominique Martinet , Stefan Agner , Luc Van Oostenryck , Nick Desaulniers , Andrew Morton , Linus Torvalds , Linux Doc Mailing List , Ext4 Developers List , linux-sparse@vger.kernel.org, linux-kbuild@vger.kernel.org Date: Mon, 22 Oct 2018 08:48:11 -0700 In-Reply-To: References: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> <20181021171414.22674-3-miguel.ojeda.sandonis@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 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, 2018-10-22 at 11:51 +0200, Miguel Ojeda wrote: > On Sun, Oct 21, 2018 at 8:11 PM Joe Perches wrote: > > On Sun, 2018-10-21 at 19:14 +0200, Miguel Ojeda wrote: > > > Let gcc know these cases are meant to fall through to the next label > > > by annotating them with the new __fallthrough statement attribute; > > > and remove the comment since it conveys the same information > > > (which was also parsed by gcc to suppress the warning). > > > > Instead of many individual conversion patches, > > perhaps a script to do all the conversions at once. > > Note that this was only an example of the attribute (some people asked > for an example when introducing another one, so I preemptively did it > for this one). > > Doing the conversion (and how :-) I left it for afterwards, if people > agree with the attribute. > > > Maybe: > > > > pattern='(?:\/\*\s*fall(?:\s*|\s*\-\s*)thr(?:u|ough)\s*\*\/|\/\/\s*fall\s*thr(?:u|ough)\s*$)' > > git grep -P -i --name-only "$pattern" -- '*.[ch]' | > > xargs perl -p -i -e "s/$pattern/__fallthrough;/gi" > > By the way, I checked first if coccinelle could match input comments, > but it doesn't, according to Julia. I am also thinking whether a > compiler plugin could easily do this, but I don't have my hopes high > given these are comments... > > Also, regardless of how it is done, the patches need to be sent > individually to maintainers, no? Not really no. For instance the spdx license treewide change. commit b24413180f5600bcb3bb70fbed5cf186b60864bd > I have a vague memory that big & > automated conversions were a bit frozen upon in the kernel. Greg...? There really needs to be some method to do treewide conversions without involving multiple maintainers. It'd be a good topic for a maintainer summit one day.