Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1582276ima; Sun, 21 Oct 2018 15:29:29 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Ytv+fKDqlYCbTBXi3ZUFoY2ZqN1Khx4bIRHTrKGVD0KxkbHmSAe++hTNcrQZCO6vgssNp X-Received: by 2002:a63:9809:: with SMTP id q9-v6mr22426092pgd.128.1540160969760; Sun, 21 Oct 2018 15:29:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540160969; cv=none; d=google.com; s=arc-20160816; b=AheGGb6q30BYxIhsPFI/uAdfQtoIA8Zw0SBJEgGb/XDJq6A/HdW4gy8+yOICDRXuKG yzP6di/qibQPJXMUYYFGLl+xDS2K0N3SZqBogaEN3uVAUqceMk+MBnHehyiG9M3eonE3 Jq3Y+Q7EA4g3KZFi5yL2R/cbs3KINYT4Ip47STHDOVescNBtb7JVW0zca7McE1do/CJY 3itiLIgD/N51EBDbOcqkdrYAQaqF64emWPiXEWVdgHQrjJkdDiJrcCCHr147/ehPdq4A wOOeYYVTIh2LDcXc5elGh1SRD7gzPI3kl7aohh25DZxpCDMhFMjgR39F0D+KoU/2wddw lZ8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=Q9DiCbOolCu5PlQf1Y2Xqjbnd867NZevsa7QdTdTq4E=; b=DTXxAxr/uR1o575umyiOPRBoaDZLqz2DccpLS+jVXr9ZljHKdNvgwJk9oonl1byRyG o1ZS++2rzvEPYcBEpwnIvPl6AbEJ5ufYknveSpHRLFMSIIzWpr/qUxVLR5P5K0huCIsT +nSpBKru8a3UfRwkd4eTqnWj6sgaYe26mGixxiYEmNf3szRKilt7YJRpQaajTs88M8Nh Nzn7I16WRZjQAaDBZqMj3qYHfHC5bWRXJPdABFNpsf1N59hc6GY5zm2YI+HwnfQKxkqt NT3/tu+SfYaf16E/jbyG1u03+x0pOylVEdjsKU5DSbSdCsTFkibLcKNf+oDJZar3jveg hu+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=W6ELe0HQ; 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 i198-v6si32794213pgd.17.2018.10.21.15.29.15; Sun, 21 Oct 2018 15:29:29 -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=fail header.i=@thunk.org header.s=ef5046eb header.b=W6ELe0HQ; 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 S1727965AbeJVGn6 (ORCPT + 99 others); Mon, 22 Oct 2018 02:43:58 -0400 Received: from imap.thunk.org ([74.207.234.97]:42716 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbeJVGn6 (ORCPT ); Mon, 22 Oct 2018 02:43:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Q9DiCbOolCu5PlQf1Y2Xqjbnd867NZevsa7QdTdTq4E=; b=W6ELe0HQ09UxmJVqo7ReN4Tcky 9ngw5qg4E0faHfsWaJ3MhYrM3sAL2ipM1oL2BTycRLE/j/b9ICVSE8Zz8CRfp+G1FlKgRUZpTJBAQ N9uC+b00yjam0o+A6lVO0LNO3wFDTBmUOJI/zMtbZX6QwfP8QIcJEtVK1cQPOLf/fCec=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1gEMBm-00026d-Qi; Sun, 21 Oct 2018 22:27:14 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 0527B7A2F4E; Sun, 21 Oct 2018 18:27:13 -0400 (EDT) Date: Sun, 21 Oct 2018 18:27:12 -0400 From: "Theodore Y. Ts'o" To: Miguel Ojeda Cc: Greg Kroah-Hartman , 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 , Geert Uytterhoeven , Rasmus Villemoes , Joe Perches , 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 Subject: Re: [PATCH 1/2] Compiler Attributes: add support for __fallthrough (gcc >= 7.1) Message-ID: <20181021222712.GI1617@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Miguel Ojeda , Greg Kroah-Hartman , 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 , Geert Uytterhoeven , Rasmus Villemoes , Joe Perches , 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 References: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> <20181021171414.22674-2-miguel.ojeda.sandonis@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181021171414.22674-2-miguel.ojeda.sandonis@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 21, 2018 at 07:14:13PM +0200, Miguel Ojeda wrote: > From the GCC manual: > > fallthrough > > The fallthrough attribute with a null statement serves as a > fallthrough statement. It hints to the compiler that a statement > that falls through to another case label, or user-defined label > in a switch statement is intentional and thus the -Wimplicit-fallthrough > warning must not trigger. The fallthrough attribute may appear > at most once in each attribute list, and may not be mixed with > other attributes. It can only be used in a switch statement > (the compiler will issue an error otherwise), after a preceding > statement and before a logically succeeding case label, > or user-defined label. > > https://gcc.gnu.org/onlinedocs/gcc/Statement-Attributes.html Do we know if coverity understands the fallthrough attribute? One of the reasons why I started using /* fallthrough */ is because it kept Coverity happy. If the conversion from /* fallthrough */ to the __fallthrough__ attribute means that we start gethting a lot of Coverity warnings, that would be unfortunate. OTOH, if this is getting standardized, maybe we can get Coverity to understand this attribute? - Ted