Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1455993ybi; Fri, 2 Aug 2019 16:20:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb1W0tb2ehUzz1+52Rcnc6uM6bl+S+pcELIuaGbh0YxGMjoWFksjhOF3XPhjz+5DgOAn88 X-Received: by 2002:a17:90a:71ca:: with SMTP id m10mr6690868pjs.27.1564788005475; Fri, 02 Aug 2019 16:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564788005; cv=none; d=google.com; s=arc-20160816; b=j7h9V4eUwwpHuS83tHUfV3Z7iWNJamzlLurwcfokrT8Vrsl2IIy8LDDMfaF51UvJOp hpCLT8vhWeNeVjybB2hVNfeGteSeWpMplALiehquuqXhvSN4qYD/JHknmrNNpS98jggu IYV77j2oeEcBEmJ+ocMgIoyX/hl2ESazj4bDNFlPBgJyZqqSE3t3n6GzHrEK3mpSy08X GAJ7ac0lgKzBeXjIzeqGEISZPsEqFXjLz/iVws9RPCkLmH27OYPOFL3eT6ThxQV4AIsF f/X6k4WEm/wYL0dDG70JU3iWAKxYtD6Hr/cUQsA4Bh8ihwwv1b3ZUZDJtzko+SpAvF0i 0vRg== 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; bh=BVjRa0wAKnP9mvDIEEfvMz4jeNMPGC8jBxZ9lRxYhJo=; b=U/5kq1WtFdXjMn+A5Fri0tOGMo50HO2Iv+uMBEt+ZjkSWgNCK0fyGvnm4ayX0pS3sF Zs8ymBv6sC7OObuk7ShAcJRY8nwYcEMe9iVDlFEbITfbzjWL+PExFjE5sazy/nTn76Jx 02kS3gsYofTzvyF+rakiCdeO6dzo0Q7Gdb1EuSkoXBUaDfTtgshQ86S4w6ulIz2aZGXV R4rFvjDTB3vbysOG3tsfJPKPBcOdYsBLdzRYeek/Pyh/TBK3UK52VZcxEuRbCXbEWSYy Ffw57M5E7VOHGcm6mPbnTjlhkix0AbBupsGvtSuPiM6uywuKZ4zyHxVUDc+QBrfGb1Fv OMsQ== 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 q23si4790628pgm.310.2019.08.02.16.19.50; Fri, 02 Aug 2019 16:20:05 -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 S2389223AbfHBMeW (ORCPT + 99 others); Fri, 2 Aug 2019 08:34:22 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:46644 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729267AbfHBMeW (ORCPT ); Fri, 2 Aug 2019 08:34:22 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 3B0A88036F; Fri, 2 Aug 2019 14:34:07 +0200 (CEST) Date: Fri, 2 Aug 2019 14:34:18 +0200 From: Pavel Machek To: Neil Horman Cc: Miguel Ojeda , "H. Peter Anvin" , Peter Zijlstra , Joe Perches , Linus Torvalds , Kees Cook , Borislav Petkov , Thomas Gleixner , Ingo Molnar , "Gustavo A . R . Silva" , Arnaldo Carvalho de Melo , Kan Liang , Namhyung Kim , Jiri Olsa , Alexander Shishkin , Shawn Landden , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , linux-kernel Subject: Re: [RFC PATCH] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use Message-ID: <20190802123418.GA3722@amd> References: <765E740C-4259-4835-A58D-432006628BAC@zytor.com> <20190731184832.GZ31381@hirez.programming.kicks-ass.net> <20190801122429.GY31398@hirez.programming.kicks-ass.net> <0BCDEED9-0B72-4412-909F-76C20D54983E@zytor.com> <20190802110042.GA6957@hmswarspite.think-freely.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline In-Reply-To: <20190802110042.GA6957@hmswarspite.think-freely.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2019-08-02 07:00:42, Neil Horman wrote: > On Thu, Aug 01, 2019 at 10:26:29PM +0200, Miguel Ojeda wrote: > > On Thu, Aug 1, 2019 at 10:10 PM wrote: > > > > > > I'm not disagreeing... I think using a macro makes sense. > >=20 > > It is either a macro or waiting for 5+ years (while we keep using the > > comment style) :-) > >=20 > > In case it helps to make one's mind about whether to go for it or not, > > I summarized the advantages and a few other details in the patch I > > sent in October: > >=20 > > https://github.com/ojeda/linux/commit/668f011a2706ea555987e263f609a5d= eba9c7fc4 > >=20 > > It would be nice, however, to discuss whether we want __fallthrough or > > fallthrough. The former is consistent with the rest of compiler > > attributes and makes it clear it is not a keyword, the latter is > > consistent with "break", "goto" and "return", as Joe's patch explains. > >=20 > I was having this conversation with Joe, and I agree, I like the idea of > macroing up the fall through attribute, but naming it __fallthrough seems= more > consistent to me with the other attribute macros. I also feel like its m= ore > recognizable as a macro. Naming it fallthrough just makes it look like s= omeone > forgot to put /**/'s around it to me. I like the "fallthrough". It looks like "return" and it should, no need to have __'s there.. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --LZvS9be/3tNcYl/X Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl1ELcoACgkQMOfwapXb+vK1hACffs8mCIfAXurkFvMKZ6v2UemF TskAn3GYO/De+EJw1nUoQq6PMRxy3zVb =Akck -----END PGP SIGNATURE----- --LZvS9be/3tNcYl/X--