From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93522C433FF for ; Wed, 31 Jul 2019 11:32:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 71696208E3 for ; Wed, 31 Jul 2019 11:32:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729011AbfGaLcy (ORCPT ); Wed, 31 Jul 2019 07:32:54 -0400 Received: from smtprelay0077.hostedemail.com ([216.40.44.77]:56467 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726378AbfGaLcs (ORCPT ); Wed, 31 Jul 2019 07:32:48 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 8462C1F17; Wed, 31 Jul 2019 11:32:46 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: train36_6f5bba09d615e X-Filterd-Recvd-Size: 2209 Received: from XPS-9350 (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf19.hostedemail.com (Postfix) with ESMTPA; Wed, 31 Jul 2019 11:32:45 +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 04:32:43 -0700 In-Reply-To: <20190731111932.GA9823@hmswarspite.think-freely.org> References: <20190731111932.GA9823@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 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. > > diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c [] > > @@ -2152,7 +2152,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net, > > case SCTP_PARAM_SET_PRIMARY: > > if (net->sctp.addip_enable) > > break; > > - goto fallthrough; > > + goto unhandled; etc...