Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6482655ybi; Wed, 31 Jul 2019 15:25:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyV1QY12tKh2RF5RrnXEWNwhMLPR/WMjy8HRldDBfZNWNFmNj9aC5EYTKUfoLnFBBq1YzPP X-Received: by 2002:a17:902:f01:: with SMTP id 1mr122185085ply.170.1564611952145; Wed, 31 Jul 2019 15:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564611952; cv=none; d=google.com; s=arc-20160816; b=Prag3eWG1SFDgNlnVbnEGVD0V0J5UvMM5HaOTmP0AqDbGCm+NMDhqZ8hYh+sihgBPM Q4f540//buZGyamf1VhJT+vDXcMOEVMjvC5Uluzo6dCmiMrXfe5s+O7ZkhPcEwXUxc3l OEYiiygJO4ykNIJaZOxl+LOjt0N7BQlcoc6R9nlGirXKScWO2rsqgb2bLgbGCIV2UxAM oq2dzl6Whxnl79qWHpJB2JCS/ezJ0haxsREFi02Af0z2lP8k4yeTkqBiarsn3Dyv3N6l tmT9yRAuEQkK1CjOEcZNKQGZp6AU7P5OLubYuDPJYQfNTFV/iLZwkAyl7aDR9jhtg0KD Azsg== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=uj13eKDNzDhpRM78/IMHw0JkC7CVcEciWz7AvuDI50I=; b=T4Mcy4ot0xVvZIOEeLbF13TJR7MBtArsBtLfSlzHTrDg8FUwVky7kuJgdrt35oYG4S 7GiqOvhPrEvmRz+Ns7ogKaxxsJz2KvV/27QKJVGasnNFGqVed5VxoaMKBO57HefFwGgK r+TvOsDz9wmK7aCr4CZJKrSmjv1F/FehReGJidiLt1jnw1rPrceDhDY9bDU+i2UKYJSx 7NqIenwv7JIkwQcdflAnYTypuhWUBU0pD2Cqvcgr5U+fu8sZSWVWzPsAclOrGiXQ7fSr apmceVnbn2g0/aABbxx1zi6Qpatfd8p24Vtdkg3gWIVqHFnMLe0KFd1Z+BwV95iF1ovX KzMQ== 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 y8si2409684pji.65.2019.07.31.15.25.36; Wed, 31 Jul 2019 15:25:52 -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 S1728698AbfGaWXv (ORCPT + 99 others); Wed, 31 Jul 2019 18:23:51 -0400 Received: from smtprelay0206.hostedemail.com ([216.40.44.206]:33503 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726073AbfGaWXu (ORCPT ); Wed, 31 Jul 2019 18:23:50 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id E4277100E806B; Wed, 31 Jul 2019 22:23:48 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:599:800:960:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:1801:2393:2525:2553:2559:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3868:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4605:5007:6119:7903:9025:9040:10004:10400:10848:11232:11233:11658:11914:12043:12297:12555:12740:12760:12895:13439:14096:14097:14180:14181:14659:14721:21060:21080:21451:21627:21740:30054:30090:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: arm44_786e4d119b04f X-Filterd-Recvd-Size: 3426 Received: from XPS-9350 (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Wed, 31 Jul 2019 22:23:47 +0000 (UTC) Message-ID: Subject: Re: [PATCH] net: sctp: Rename fallthrough label to unhandled From: Joe Perches To: Neil Horman Cc: Vlad Yasevich , Marcelo Ricardo Leitner , "David S. Miller" , linux-sctp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 31 Jul 2019 15:23:46 -0700 In-Reply-To: <20190731205804.GE9823@hmswarspite.think-freely.org> References: <20190731111932.GA9823@hmswarspite.think-freely.org> <20190731121646.GD9823@hmswarspite.think-freely.org> <20190731205804.GE9823@hmswarspite.think-freely.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-07-31 at 16:58 -0400, Neil Horman wrote: > On Wed, Jul 31, 2019 at 09:35:31AM -0700, Joe Perches wrote: > > On Wed, 2019-07-31 at 08:16 -0400, Neil Horman wrote: > > > On Wed, Jul 31, 2019 at 04:32:43AM -0700, Joe Perches wrote: > > > > On Wed, 2019-07-31 at 07:19 -0400, Neil Horman wrote: > > > > > On Tue, Jul 30, 2019 at 10:04:37PM -0700, Joe Perches wrote: > > > > > > fallthrough may become a pseudo reserved keyword so this only use of > > > > > > fallthrough is better renamed to allow it. > > > > > > > > > > > > Signed-off-by: Joe Perches > > > > > Are you referring to the __attribute__((fallthrough)) statement that gcc > > > > > supports? If so the compiler should by all rights be able to differentiate > > > > > between a null statement attribute and a explicit goto and label without the > > > > > need for renaming here. Or are you referring to something else? > > > > > > > > Hi. > > > > > > > > I sent after this a patch that adds > > > > > > > > # define fallthrough __attribute__((__fallthrough__)) > > > > > > > > https://lore.kernel.org/patchwork/patch/1108577/ > > > > > > > > So this rename is a prerequisite to adding this #define. > > > > > > > why not just define __fallthrough instead, like we do for all the other > > > attributes we alias (i.e. __read_mostly, __protected_by, __unused, __exception, > > > etc) > > > > Because it's not as intelligible when used as a statement. > I think thats somewhat debatable. __fallthrough to me looks like an internal > macro, whereas fallthrough looks like a comment someone forgot to /* */ I'd rather see: switch (foo) { case FOO: bar |= baz; fallthrough; case BAR: bar |= qux; break; default: error(); } than switch (foo) { case FOO: bar |= baz; __fallthrough; case BAR: bar |= qux; break; default: error(); } or esoecially switch (foo) { case FOO: bar |= baz; /* fallthrough */; case BAR: bar |= qux; break; default: error(); } but , bikeshed ahoy!...