Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2762714ima; Mon, 22 Oct 2018 15:43:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV62DcZnXr4r4oIcE3DyqYcCOYTPqLzCpnRjof5Nh1vK27rfNbqqTJcIQJxxu72bHnqaqzlti X-Received: by 2002:a62:e80c:: with SMTP id c12-v6mr47757823pfi.124.1540248236308; Mon, 22 Oct 2018 15:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540248236; cv=none; d=google.com; s=arc-20160816; b=n9zNwaTG8TQhsV4cBF+FzxQ58EvfSSXvgx1t3nlxAhfJ535x1gf+RXHtAGEopiMHSd sV/NRPIiOBPFA4sQH3RIUO5A+8XDU1qJpGc7RTz/w/9Xkl+udmK/30LzM650WaOH8Aeq ewLNu6kzRUv0GRPgEA5RNbb39TepWW2BxVwT5D4b+0IhcJj5p1U8TUaMwEVopKWJ9zr1 JJsPYbreq2cDiog3B9nX812iIy0bNHg9X9TFfMbj7t92iFW1piDiP/AIPLYNaZNDdhd/ y4o14eiKq5uqrn4b8UO/0Bfi3QeYoKi32FuPLXO7bkmArMid51uIFTOfXa2hRbrW7I4N btyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CxbGsIEBKJXLFMJMwsrH4depnZVFzjL0UEhUtSqhCgc=; b=AK6U5XJzTKN02om2gBcvhNjaTBxkWBVgN8PDj6rFjS6D/K86bT6o8cwF6G7Qifxgnv gvByj/tBax9pZ33dxPPjwGHXn8qoi8bRpG1SPngfZ1lRzVnKBOrFNsiWJuA853ybm5Z/ GFNxQtuEYERz7l4+0FqvDy2NKzmHzlmoN+Mnh8YzlCuv6Iozxk9+uYiPpyQPvubUCWaF Q8979xpfPwdeVWZMwvmc0P+KhRwbMJDFhiEtziVwfCXjz7RmwrZL1qhnXOvqXAQMmFH/ ujc/bn8D2ahqYrieRHtstl/nnPZK1HyS0UNV0p0QVaa143kK0fcwmiCDF2a3jtqPKhW4 db8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="P5/KMGNw"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91-v6si15791650ply.48.2018.10.22.15.43.40; Mon, 22 Oct 2018 15:43:56 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="P5/KMGNw"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729488AbeJWFoN (ORCPT + 99 others); Tue, 23 Oct 2018 01:44:13 -0400 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 Received: by mail-lj1-f195.google.com with SMTP id x3-v6so38363137lji.13; Mon, 22 Oct 2018 14:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CxbGsIEBKJXLFMJMwsrH4depnZVFzjL0UEhUtSqhCgc=; b=P5/KMGNw65Q35bdeFHk1TQv/9QBlY6zVMz/YsUU5nkht3Ajw2TjBSVC+tOAYxsaahq /Zz0/clKS1bRgZGq1LmLA98Z4VTFIaUBuctAkpkCCBlo5kHYz+3qKrQtjI3sh8t+Qp4J Rd7Cve20wKgYW1mNAiSbXhOWDIwfSto+tc4tgON7IP2HDk/1Bal2TqAQOPaVRh7n7iXJ oPadhEGKIjvJ8S7JTFrmyhy8j1b1oxcI45NUbg2GfPDa2pPpWCDOh91138LUFXLYuzvV kKfdxJQ73WIsuZC8J4rcnfP9OzOY9aIIofH3rPXQ0xEYVyNFh/7/SH6Y7NrpNf16WEUY cV/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CxbGsIEBKJXLFMJMwsrH4depnZVFzjL0UEhUtSqhCgc=; b=DpZoPqadcSxYvO5eEys45owPDaQ2HvfwBI3QCFBS+xGkawIm5E4FVUgZIUoG+AeErY UBUzVT7TOfNjeJcmfF8R/udNW6D+U8gMO4MSoK9+EelOFSrlRrCRseuCEl2AdIYxb3QY GJL5hlBF6CakM+mpgYCYwmLJPWRKGrnumV3zea8QIa8RmKvvpOiIUlEDjrLqGRvXGQP7 zy7DWZzh9GNmyre/OWhKP4xvHoKM/P6neZvsV6AGR9O1FCmC2oONfASEvNXsyUSznt2O yEvDhofizoxe20CuGxtniRwMzoQZuD95eIfGOxTN10CJAskgRZJbfWY9FYARIt5wCEXk fW3A== X-Gm-Message-State: ABuFfoi8hX/GH2dELVaDEuLE8Vl0ReWl369EcAQrMso6N5JRLYEt50R1 JDL1HjM6olbgZnJ6bjDElfR1USrNz/mCnMWij4E= X-Received: by 2002:a2e:6e08:: with SMTP id j8-v6mr33346152ljc.61.1540243437212; Mon, 22 Oct 2018 14:23:57 -0700 (PDT) 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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