Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1666054ima; Sun, 21 Oct 2018 17:50:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV61+y41O7ljL1u9w4lwzAQeNkrQlWVAKy2ver3QNgs9goi9X5vdJAG//rWzqk0alTo9P+Fkn X-Received: by 2002:a62:210:: with SMTP id 16-v6mr44982105pfc.100.1540169445700; Sun, 21 Oct 2018 17:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540169445; cv=none; d=google.com; s=arc-20160816; b=oqajZf0fUtYWyy9j4hfOyjq9eUzM8nZ9rGGDr0sTMxGSYAbJ7fofJeRlpUvLUrtVPB VYbpAECChELGn1T0eCJdGcyXIBSCwD175LabndfdDG7RRsqePGNoTRyArRN/L8WMVP4H 9K1tbTfdg18V4eE5y6UGr3HH21nZ+Z/obHOs2kC6ho7m30IMUsvPz3D3rOXzzPPvF3Zz MGSy6xWtCJgYPq2EGbJNwaPwA/UqZMlHIS7oAssZiXn8xETLasnzDqEiEsVNAVfAjAW8 1VwOzz3vOMtAghsmkbOOAC5GscqAIHH6jTEv926lnrME5vZD70SE6raTPbG+nnpt3Dz1 +HDQ== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=Gop3IRT770eX7Zwe4U5wCDWcm0dAZj5Nw0+yf+Xyun0=; b=WC6q8xmyt2/EQ5ousjGywy3ec4zVXOZwzwW8F2TXhkcIxT5hMcpadslMINEyrYj1v5 MHQ10vRbgkWN0uBMDjZWDIGr8GeNcL/ObRFq+8QlxYEVarKKSAAIE+kQ+zmSiSbppmBX xFmxGZhS02z4ul5GU7e4n4P4Y80axxP1QiikKnlUs6Lel6F7k8Pw1cGzIE99tbJ/hn6h fp51qY7rgas6jl8zFDyNHYgE90273vccKOATV4b4QGPVEyMwk3DN1NilNd7S/XAENmNs DIV/TFJz8xSr8Bli+4W2lUZ47BpFu2UommDAuKkkhWB7S9+9i9ZP9nqg31iWUbrwFyEx 2luw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Tk2dngDi; 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 u7-v6si33227258pfu.143.2018.10.21.17.50.30; Sun, 21 Oct 2018 17:50:45 -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=@infradead.org header.s=bombadil.20170209 header.b=Tk2dngDi; 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 S1727014AbeJVI6k (ORCPT + 99 others); Mon, 22 Oct 2018 04:58:40 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39132 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbeJVI6k (ORCPT ); Mon, 22 Oct 2018 04:58:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; 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=Gop3IRT770eX7Zwe4U5wCDWcm0dAZj5Nw0+yf+Xyun0=; b=Tk2dngDifGiIkTr9M7a1+VMT7 8x/fgR6vmJFiznhitTWyJcGg11QGiywtoVR7MvsorhQgZCvkNpC9mdvu+DrYj993ajIySNVa80peG VWWx5Pmk9sBawc73ieI63W9jVux+WYWnAiwW+Arru89UVzKaXMOSI6LzwSKarQvRazG/p2GDPPJZ/ maqmP8eaB1jM+Fn9n2awBQ2jPvls6sQdhv+WGdaAZ4IFhU4w1FQikupu4AYqixVu7RiRlEzlpbkrj cFGiFHbSex4U7qp6MaOSGdJ8G9qgN2ok9Wr7GlXJgHWZMwXEZRvnA75NGqvhhV1wwpKh1sCI5R1gW ozjWGgg2A==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gEOIU-0002Vi-67; Mon, 22 Oct 2018 00:42:18 +0000 Date: Sun, 21 Oct 2018 17:42:18 -0700 From: Matthew Wilcox 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 , Theodore Ts'o , 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: <20181022004217.GA4941@bombadil.infradead.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.9.2 (2017-12-15) 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: > +#if __has_attribute(__fallthrough__) > +# define __fallthrough __attribute__((__fallthrough__)) > +#else > +# define __fallthrough > +#endif Why is the #else not: # define __fallthrough /* fallthrough */ Would this solve the Coverity problem, or does Coverity look at the raw source code before preprocessing?