Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2499808ima; Mon, 22 Oct 2018 10:45:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV62FUN7hK7To3FvTC4odf1/mWeCgN1nmiRqjKzUF9enLnzPXHfebZJDX2ZKAJX+vKsHbR7Tp X-Received: by 2002:a65:4845:: with SMTP id i5-v6mr21213407pgs.399.1540230340185; Mon, 22 Oct 2018 10:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540230340; cv=none; d=google.com; s=arc-20160816; b=N2H3BOL/NF+tL2m10kcCm68vB128kMcprmHavQ9UN4tO5N2ms0C9gFWCwZ6nyXp8RM nic/jcuRKTHJL6Gs3rkkUXL3A0bNSePSQRrx8Er/45486UvBeFuMJGUUrJMt7rnwh98J ntXLigD2yjNvvjR6DLVjJIMf6mMsBsJyK6M1VU/ya486jpNZaCVFuMTNCYRK2AEI31A9 AVR3pmi8txeIXKubcgXRIfbjH6p86nTZLkCwbTOal6dsAJrWAjvJrz0uGJZixwxwkS3P NQ+S0eeFX6fdOh+FlbMAsAX6rhGiC/8nI47NyjFZnL4sVSNDZd484e0UVtkB3izeEDCn wJ6A== 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=a8cmPZrGRMo0J2wzmUeELFcmTDZd1pKGdJMqmndjEdk=; b=suBUIAY/6jOoBr1PjqeNiMXamaKRf7Es+TEq9/0CTOhjPe7+FCJIhfYMafWADNJoWY lNnnsd87wI9EXnVYp27m8BpGNzBmMKCoDknOfXXnsqit+eBtEWciMKOjZuYnNJl5FZoK VHoMSnNaR00cNS2+IYWtwMcIgy4mcaJhDoPYGrpz1cMoTom3efNoC7w9WZVHNq4gRLba nKBWynA9CkcV07l21q4/TxwlKaAG5LPXjjSlgILjUoiGaHe3tFWAbrVED0HMIW7I4gGD zHus7PXyRcVS7woU3MKxkeyyo5hScnj0z/8ysJdu7KNkp6+gW+fBwUfyN1muMM1jmL1V WXoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="S/prikuf"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b27-v6si36511496pgb.156.2018.10.22.10.45.24; Mon, 22 Oct 2018 10:45:40 -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=@google.com header.s=20161025 header.b="S/prikuf"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728545AbeJWBN5 (ORCPT + 99 others); Mon, 22 Oct 2018 21:13:57 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40579 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727787AbeJWBN4 (ORCPT ); Mon, 22 Oct 2018 21:13:56 -0400 Received: by mail-pg1-f194.google.com with SMTP id o14-v6so3580503pgv.7 for ; Mon, 22 Oct 2018 09:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=a8cmPZrGRMo0J2wzmUeELFcmTDZd1pKGdJMqmndjEdk=; b=S/prikufPsgp7CDFHp1vLGIE6cWbzKY72J5VsSAGg9njlpBWqaaEsmAc9f5Kx+yYiW +BSmD/MrgyF8OqHNYasXNYHVmhn0h+p/t8PmT0dp5CiNvZxlBB9zZRZD2k9RDRgtl+1Q BiLXmdeEXHSZRzFTikEwQQENcNM3jGzfn43HAAXnbdyjKaHy3oL7ONg5vwBnMPqvKnR6 A47C0hbYMxLB1YKCr9k9jQk+TIGXsqOJXkvBuEOigQ6jVgl0fEKo7zDVRzAzQRuTQoix +6GAdn4INGy690qfYyL4p5Q1lowRFkaGVNtKtXkH2eBpf8bd95idK7WEXz3iZXecR5G1 XtNA== 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=a8cmPZrGRMo0J2wzmUeELFcmTDZd1pKGdJMqmndjEdk=; b=G0Zf4cjlX7yoh6kTh3NlgVoLeCvJGB5D4oS5tRmu+n/3xKz53nDptGhs3XM36M0zY0 IHISpNHSEpwHGQuptRbvjUCCxCjhooiT2Bapum1BLExUGuSJbUhWEBJF8Qa/NVDDhFIp +ccARS8cNgyLBHzddvIs9kAcBmu/CmAfiSvL6O/pGU54Ewd//kM4UEdmKwGrB4qE248M D6tAJ0lhYqwFQ5UbcFeYrbk6E1SvYx1L4JwX2IDc5hByPlAhKJZDP8luK6ngONGbyKQ/ XBaqEQytnI0re3cKDrLp/L4dpZvQv/3EFgjAiJetXkEiOdfEiuixfRkrZRr0EVzCaQkj U2PA== X-Gm-Message-State: ABuFfojGSHgH3v8XAGHEwd+YC6efQ54wcH35gogNghIkNsHDwKab37Iu ZNNsKpUgkr6F72UL4TfSxt5vHKpyyyCOAwHexXYbQA5u X-Received: by 2002:a62:4b09:: with SMTP id y9-v6mr46361227pfa.93.1540227279339; Mon, 22 Oct 2018 09:54:39 -0700 (PDT) MIME-Version: 1.0 References: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> <20181021182926.GB6683@kroah.com> In-Reply-To: From: Nick Desaulniers Date: Mon, 22 Oct 2018 09:54:27 -0700 Message-ID: Subject: Re: [PATCH 0/2] Compiler Attributes: __fallthrough To: Miguel Ojeda Cc: Greg KH , LKML , dan.carpenter@oracle.com, 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 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 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? -- Thanks, ~Nick Desaulniers