Return-Path: Received: from mail-lj1-f195.google.com ([209.85.208.195]:46250 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727025AbeJWFoN (ORCPT ); Tue, 23 Oct 2018 01:44:13 -0400 MIME-Version: 1.0 References: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> <20181021182926.GB6683@kroah.com> In-Reply-To: From: Miguel Ojeda Date: Mon, 22 Oct 2018 23:23:45 +0200 Message-ID: Subject: Re: [PATCH 0/2] Compiler Attributes: __fallthrough To: Nick Desaulniers 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 , Joe Perches , Arnd Bergmann , Dominique Martinet , Stefan Agner , Luc Van Oostenryck , Andrew Morton , Linus Torvalds , Linux Doc Mailing List , Ext4 Developers List , linux-sparse@vger.kernel.org, linux-kbuild@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org List-ID: On Mon, Oct 22, 2018 at 6:54 PM Nick Desaulniers wrote: > > On Mon, Oct 22, 2018 at 2:48 AM Miguel Ojeda > wrote: > > > > On Sun, Oct 21, 2018 at 8:29 PM Greg Kroah-Hartman > > wrote: > > > > > > Will this work with all of the static tools that are currently looking > > > for the comment instead? I know coverity handles that, what about > > > others? > > > > I will also contact the different tools about this. > > Let's contact the authors of these tools if they don't parse the > attribute. I prefer to have the attributes rather than specifically > formatted comments. Sorry, not sure what you mean -- isn't that what I said? Greg was asking whether tools would support the attribute equally well compared to the comment parsing; not the comments. > > I do think this may be tricky to provide backwards support for though; > Miguel, do you have info on which versions of GCC support comments vs > attribute? It is in the commit message: """ In C mode, GCC supports the __fallthrough__ attribute since 7.1, the same time the warning and the comment parsing were introduced. """ Cheers, Miguel