Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2019367ima; Mon, 22 Oct 2018 02:48:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV63epHwhREBYNUBmdNwqIUL8rVHAPO4dNVsI+iUpL7RQo7s5hpZqqxHtzGy0oQv/K+viuhyp X-Received: by 2002:a62:6041:: with SMTP id u62-v6mr36556845pfb.110.1540201728974; Mon, 22 Oct 2018 02:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540201728; cv=none; d=google.com; s=arc-20160816; b=uRERGKlokdDn95TtCn6Nij8Dc90MVNI7LDDFDoTRMRFk9/+vz9HqzORZPYpMKYh+Iu muIQ8Jo9IDFEvKOoVwchTbui+rwIzT3AS0a4R0WjpkCsUgIuHCDBdJVfRT2GWJ2XFAwm x6kk9hbL+VGOTHq3l3QUotny0efqwr9nTMhCMleunUL8cZQwhmswygJfzHlumKo1325j quBQNxd083dgCcCB1GX9x3iD2pIuxM0YByLs/1K9R8rR/1hZ2nicOeP1YTpJ/NHb8fgm +/CkM0YfsCYExmn3wo26iUUNzk31PSafXggV3y53WR+7EtE7HrOuc5upLGcFOsW5/eux z2Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=gBTQK0xpXO1WqCScPkFg/4g+cMAgmc/269OesCYD+lQ=; b=pnQBY7p1CP70L4TmZZAeuzQd5c6femPjUy9iGNGpsQVdwekYGBbJu1C2vo2wMM1Tml 8zGSFgLlOi31QbSQeMNWvOMVZEJ7jDGtaz9CT3gVz8sQWrJJOrVbVkcYcaAfzHNFVMBQ On5pK4DUeDXgZskuI3CNdFUPPwe24rZO9tnqVuz2Ygjdblv9rDbFHxOIBiDpmcbQixxI rIOt9SVZ5+Zn/xM/Uj9M9n0htS3TQCL/Z5uJsNdc+MJ12RhBrcKXwv1GAin4yV1JZ565 xGaX+FDCqfkpxSFZ/Nc7sVJMu5sD4xq1Etrp0POvS1jmN8I13C4gyQg+rak+GDSyneNf mh/g== ARC-Authentication-Results: i=1; mx.google.com; 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 e92-v6si28238160pld.45.2018.10.22.02.48.33; Mon, 22 Oct 2018 02:48:48 -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; 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 S1728418AbeJVSGA (ORCPT + 99 others); Mon, 22 Oct 2018 14:06:00 -0400 Received: from esgaroth.petrovitsch.at ([78.47.184.11]:3296 "EHLO esgaroth.tuxoid.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728336AbeJVSGA (ORCPT ); Mon, 22 Oct 2018 14:06:00 -0400 Received: from thorin.petrovitsch.priv.at (80-110-99-3.cgn.dynamic.surfer.at [80.110.99.3]) (authenticated bits=0) by esgaroth.tuxoid.at (8.15.2/8.15.2) with ESMTPSA id w9M9g6ie022922 (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO); Mon, 22 Oct 2018 11:42:16 +0200 Subject: Re: [PATCH 1/2] Compiler Attributes: add support for __fallthrough (gcc >= 7.1) 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> <20181021222712.GI1617@thunk.org> From: Bernd Petrovitsch Message-ID: <8fb78062-b6d4-6f2d-d943-44bec6b95ff0@petrovitsch.priv.at> Date: Mon, 22 Oct 2018 11:41:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181021222712.GI1617@thunk.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-DCC-debian-Metrics: esgaroth.tuxoid.at 1169; Body=43 Fuz1=43 Fuz2=43 X-Virus-Scanned: clamav-milter 0.97 at esgaroth.tuxoid.at X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Report: * 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on esgaroth.tuxoid.at Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/10/2018 00:27, Theodore Y. Ts'o wrote: > 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. FWIW, current "eclipse" has the same "problem". > If the conversion from /* fallthrough */ to the __fallthrough__ > attribute means that we start gethting a lot of Coverity warnings, We could keep both. MfG, Bernd -- Bernd Petrovitsch Email : bernd@petrovitsch.priv.at LUGA : http://www.luga.at