Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1438720ima; Sun, 21 Oct 2018 11:45:01 -0700 (PDT) X-Google-Smtp-Source: AJdET5dUJO4FNHw1d6+Spf9gn/uWIGDqDGwuVhoLjzv7qL6hfXsQSw1+Ink+b78pfaTxwMOOn6Ou X-Received: by 2002:a63:8948:: with SMTP id v69mr271404pgd.39.1540147501061; Sun, 21 Oct 2018 11:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540147501; cv=none; d=google.com; s=arc-20160816; b=Da+0R1NdQo2u6KaTa3iV2Lkz5Q+U1u4NmEz4QVkKQCVYoiREp1LdBJoTLVc8j9t0AF /89iN1kkQDIwXI3FESMLgqZwodetJv2B3ASjJHiETOPf7/JEaAubhXJUmm/Wb/Q6kvRr Hi/svAvxLAf7jh1ftzHYvgw/lCcJmwNh3hpj5XjQ1+euKtvWYxyTdWn9mkdGKCdUXDCX BYcP+OCE+s5zCBSwPVuO6vxOrNWVx60j2RqJb1yYgG2eeftGWKCtmpwdOvJpcI2zWxIj MlSFhadFjq9WeKZyQemlHcPV+iqVuZcnZjPqI1gyQYJ7oZq5OlnvgkpLyk6QeFq2Xm8c UwXg== 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=wCvvINBbiXtuZfUY7qQnrDJhHQC29zC+j2Z8hu99GvY=; b=sGWER4jZIYw9JuKXlXXYm2Wz9Et0abVZQ5Ke13j9eaMglcRIF3AH0xuiUEW7tMvOzl WCorhEZLKYcay+kv5EAxflhkb5/AV4jbsqM5DbSab75v0jGrKREuR1TC6z1SsqVZw1aY fpWhoyn+9dHhSMc5ud2t7pSwlbOIGvAfo7vQgrtf9FNmQYbzKV1x/XSYAU0YmCA7vgjw 6+Sjy+evmv+dBVIjSpPVFcxaAXCheELj63PGCJFn9TLz3wxUilmSJU1osJJxi+0EUW2W YuCpbhgqt+cPWLgNjw2KsMVfvAJZqGQ2geZadNx93SluxSC70/02Q1FODgBGQv1KlI+H fkWA== 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 c12-v6si31480859pgj.70.2018.10.21.11.44.45; Sun, 21 Oct 2018 11:45:01 -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 S1728123AbeJVC0y (ORCPT + 99 others); Sun, 21 Oct 2018 22:26:54 -0400 Received: from smtprelay0047.hostedemail.com ([216.40.44.47]:33289 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727832AbeJVC0y (ORCPT ); Sun, 21 Oct 2018 22:26:54 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 46B84180A68A9; Sun, 21 Oct 2018 18:11:44 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: X-HE-Tag: quilt34_488cdc69ee618 X-Filterd-Recvd-Size: 3121 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA; Sun, 21 Oct 2018 18:11:38 +0000 (UTC) Message-ID: Subject: Re: [PATCH 2/2] Compiler Attributes: auxdisplay: panel: use __fallthrough From: Joe Perches To: Miguel Ojeda , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Dan Carpenter , Andreas Dilger , Masahiro Yamada , Michal Marek , Steven Rostedt , Mauro Carvalho Chehab , Olof Johansson , Konstantin Ryabitsev , "David S . 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 , Theodore Ts'o , Geert Uytterhoeven , Rasmus Villemoes , Arnd Bergmann , Dominique Martinet , Stefan Agner , Luc Van Oostenryck , Nick Desaulniers , Andrew Morton , Linus Torvalds , linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, linux-sparse@vger.kernel.org, linux-kbuild@vger.kernel.org Date: Sun, 21 Oct 2018 11:11:36 -0700 In-Reply-To: <20181021171414.22674-3-miguel.ojeda.sandonis@gmail.com> 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 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. 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"