Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5936299ybi; Wed, 31 Jul 2019 05:46:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxz0CJvzUujCaTbi0XfdlAOeGA2GoBozD/B0VOLyTsHQ3EaQEh2kLUGqvX0Dw6oiwhaQniY X-Received: by 2002:aa7:9146:: with SMTP id 6mr45712120pfi.67.1564577163933; Wed, 31 Jul 2019 05:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564577163; cv=none; d=google.com; s=arc-20160816; b=elUkabT7NvKV+ad3atmF6qROdnFMlcaO8O9eFcswECTfIJ3oAz5AvaLo7aHprKerla heMht56xHBllAcT5mpGW3q3iwpjM4xTLZRmUyH7olnsTuxa94F7DkQkmLLxxas2aPuKL O5S1H2EbeVZTmAhvABUL7tZueq2F9/IaDYyVNrKkeN/8Bil7m8LB26Z0IHUQCXPc2xOZ WwCkjxrROqpcuKE/UWZWtkR5p0Qt9pCpFttqVOk+GxysymGhUHAudGko0M2C7SVEZxC6 hRbSXGfYQqLp9mr2SnMSMjDvtK+WUDm4bXlwZ908U74mRiON+VopCq9YOkBZJ5cR8dBa rCPg== 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=5Yt1WUQBm5kjkcU7DD7fkmdCQFZ3+83/rz9bPkSLDL0=; b=mXlqoUyVblbJrfju9RNmpaeWbHcPMOhkAZxi6Ny2CbX5GkfNKKUKgD/qQxeUnvTeFB 2v3i7E/LrWDhdc6Kfxl82YZAI2cfLyp3yquxqhLH7ukGOeT7aztR8Q4VYuFkHN4J1gcR XUTtbNF/jXuigLZ95nuaLD/sW6EXgvQfWGvehrMebzGs+mE8qYjnxMRlhngYe0gnrFCN 5iWxgmQzd3EeK7lr8ft/x124FuM1i3j87cwggTK4dJo4E+ZDSFWT2wvtUvkhi7aewx9F MrEQm2nS5LTylnKTwiHj4+I6kRuAbXf370RfHbR4qTVIXYUOJjUeRzxN0e/W7+tWuMuc fOwg== 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 n187si35624252pga.165.2019.07.31.05.45.48; Wed, 31 Jul 2019 05:46:03 -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 S1727392AbfGaMRW (ORCPT + 99 others); Wed, 31 Jul 2019 08:17:22 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:39530 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726274AbfGaMRW (ORCPT ); Wed, 31 Jul 2019 08:17:22 -0400 Received: from cpe-2606-a000-111b-6140-0-0-0-162e.dyn6.twc.com ([2606:a000:111b:6140::162e] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1hsnXd-00026K-St; Wed, 31 Jul 2019 08:17:16 -0400 Date: Wed, 31 Jul 2019 08:16:46 -0400 From: Neil Horman To: Joe Perches Cc: Vlad Yasevich , Marcelo Ricardo Leitner , "David S. Miller" , linux-sctp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: sctp: Rename fallthrough label to unhandled Message-ID: <20190731121646.GD9823@hmswarspite.think-freely.org> References: <20190731111932.GA9823@hmswarspite.think-freely.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) 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 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) Neil > > > 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... > > >