Return-Path: Received: from userp2130.oracle.com ([156.151.31.86]:36076 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726837AbeJWOGv (ORCPT ); Tue, 23 Oct 2018 10:06:51 -0400 Date: Tue, 23 Oct 2018 08:43:06 +0300 From: Dan Carpenter To: Nick Desaulniers Cc: Miguel Ojeda , Greg KH , LKML , adilger.kernel@dilger.ca, Masahiro Yamada , Michal Marek , rostedt@goodmis.org, mchehab+samsung@kernel.org, olof@lxom.net, Konstantin Ryabitsev , "David S. Miller" , Andrey Ryabinin , Kees Cook , Thomas Gleixner , Ingo Molnar , Paul Lawrence , sandipan@linux.vnet.ibm.com, Andrey Konovalov , David Woodhouse , Will Deacon , Philippe Ombredanne , paul.burton@mips.com, David Rientjes , Willy Tarreau , msebor@gmail.com, sparse@chrisli.org, Jonathan Corbet , "Theodore Ts'o" , Geert Uytterhoeven , Rasmus Villemoes , joe@perches.com, Arnd Bergmann , asmadeus@codewreck.org, Stefan Agner , Luc Van Oostenryck , Andrew Morton , Linus Torvalds , linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, linux-sparse@vger.kernel.org, Linux Kbuild mailing list Subject: Re: [PATCH 0/2] Compiler Attributes: __fallthrough Message-ID: <20181023054306.wbmcg6vigc4jlb25@mwanda> References: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> <20181021182926.GB6683@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: On Mon, Oct 22, 2018 at 09:54:27AM -0700, 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. > > 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? None. GCC 7.1 added support for the warning, the comment parsing and the attribute so it's fine. The only thing that we know for sure is an issue is Eclipse. We need to test Coverity but it should work in theory. And we don't know about CPPcheck. regards, dan carpenter