Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp844593ybp; Fri, 11 Oct 2019 05:22:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIh39iVz3UcDo1WzgXK2IuyIZdDdihUjzUPOBjzFAOC7X7u9AsOnruDiRHdlFvOxcfoiFC X-Received: by 2002:a17:906:48d4:: with SMTP id d20mr8669991ejt.246.1570796528982; Fri, 11 Oct 2019 05:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570796528; cv=none; d=google.com; s=arc-20160816; b=WDgMEnOJAHnkaf+c0cRlIjUcCbTcIzFjmY0qaP72OAhtgc/NyDHFaOQU8zMIQSYq6D OypLjiK9tSjSq5CIIngRKMWs054RcNzCn0WVU0hPkZIRL6VLRruyONaXk/ijjYoyhbj/ 2Yz1H7hCGv+htvmvliUs0tAUJtWqJYtUBddNdUPWoC8yQubVdzb+J8Mwppk76cn05G4A ZLHzOxSHc3gGaYuQ0jxtWkbOs5VmirwXOW+dOUligkAiX3oKSSB+RAaNTBUBQgz34yyK sZJDY+5J3eH2QmWpvrvU4V5NcCEfFYUa/ExDsDrxyeDPpK27KrtLcgnvdIZFWjttCLOS 5WCQ== 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=h9prKIfwhl6BgpPw42Ppw6x1dSst/WlwJtO+uY0Qleo=; b=wFR84vQFIQjPjtrKGSiG7jhz+DaHcrU4MAIUvM7FXo59fwKng0F0vkctM9ZgJQXe3w YiaHv/MfSg/HGAV7qag0M4CeJpfy+8zC5dJkMKbKaFO5rkGYODLMFPZLLpCeDLwh/7Gh tcUr7bn+mlrHcSrQkWPu+J6ynZGvXNyaL0W4PiCJG4uU2s2IFPG9HXfRmCFnSPOmuB5Q LYR6bU0Fi2DNl3L/WrRu2+yE9YfiiWYH8jRiX9ooKbg8hwdTuZ/lFO/U/F4qIgBm8A2L GMeo9RcYqgwGY5nq3jJQVlgT5eK0Wf7uoVpjDoJkYJNVD8s0Jh0xO9EdY9W7EgFcSgnl OFlg== 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 f15si5187189edm.414.2019.10.11.05.21.44; Fri, 11 Oct 2019 05:22:08 -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 S1727960AbfJKMVi (ORCPT + 99 others); Fri, 11 Oct 2019 08:21:38 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:53630 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727198AbfJKMVi (ORCPT ); Fri, 11 Oct 2019 08:21:38 -0400 Received: from cpe-2606-a000-111b-43ee-0-0-0-115f.dyn6.twc.com ([2606:a000:111b:43ee::115f] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1iItuT-0005XC-6F; Fri, 11 Oct 2019 08:20:47 -0400 Date: Fri, 11 Oct 2019 08:20:37 -0400 From: Neil Horman To: Joe Perches Cc: Linus Torvalds , Vlad Yasevich , Marcelo Ricardo Leitner , Miguel Ojeda , Kees Cook , Borislav Petkov , "H . Peter Anvin" , Thomas Gleixner , Pavel Machek , "Gustavo A . R . Silva" , Arnaldo Carvalho de Melo , Kan Liang , Namhyung Kim , Jiri Olsa , Alexander Shishkin , Shawn Landden , x86@kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , Andrew Morton , David Miller , clang-built-linux@googlegroups.com, linux-sctp@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 1/4] net: sctp: Rename fallthrough label to unhandled Message-ID: <20191011122037.GA16269@hmswarspite.think-freely.org> References: <2e0111756153d81d77248bc8356bac78925923dc.1570292505.git.joe@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e0111756153d81d77248bc8356bac78925923dc.1570292505.git.joe@perches.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Spam-Score: -2.9 (--) X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 05, 2019 at 09:46:41AM -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 > --- > net/sctp/sm_make_chunk.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c > index e41ed2e0ae7d..48d63956a68c 100644 > --- a/net/sctp/sm_make_chunk.c > +++ b/net/sctp/sm_make_chunk.c > @@ -2155,7 +2155,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net, > case SCTP_PARAM_SET_PRIMARY: > if (ep->asconf_enable) > break; > - goto fallthrough; > + goto unhandled; > > case SCTP_PARAM_HOST_NAME_ADDRESS: > /* Tell the peer, we won't support this param. */ > @@ -2166,11 +2166,11 @@ static enum sctp_ierror sctp_verify_param(struct net *net, > case SCTP_PARAM_FWD_TSN_SUPPORT: > if (ep->prsctp_enable) > break; > - goto fallthrough; > + goto unhandled; > > case SCTP_PARAM_RANDOM: > if (!ep->auth_enable) > - goto fallthrough; > + goto unhandled; > > /* SCTP-AUTH: Secion 6.1 > * If the random number is not 32 byte long the association > @@ -2187,7 +2187,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net, > > case SCTP_PARAM_CHUNKS: > if (!ep->auth_enable) > - goto fallthrough; > + goto unhandled; > > /* SCTP-AUTH: Section 3.2 > * The CHUNKS parameter MUST be included once in the INIT or > @@ -2203,7 +2203,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net, > > case SCTP_PARAM_HMAC_ALGO: > if (!ep->auth_enable) > - goto fallthrough; > + goto unhandled; > > hmacs = (struct sctp_hmac_algo_param *)param.p; > n_elt = (ntohs(param.p->length) - > @@ -2226,7 +2226,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net, > retval = SCTP_IERROR_ABORT; > } > break; > -fallthrough: > +unhandled: > default: > pr_debug("%s: unrecognized param:%d for chunk:%d\n", > __func__, ntohs(param.p->type), cid); > -- > 2.15.0 > > I'm still not a fan of the pseudo keyword fallthrough, but I don't have a problem in renaming the label, so Acked-by: Neil Horman