Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp33375pxh; Thu, 7 Apr 2022 13:07:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNvxEaUY5wT8ritHa/IgSSfxmlNQj7QVR6201kBeNCDset8uompb+/AeeY2J0GsXRHO6DP X-Received: by 2002:a17:902:d481:b0:154:7f0b:62fb with SMTP id c1-20020a170902d48100b001547f0b62fbmr15840954plg.41.1649362051288; Thu, 07 Apr 2022 13:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649362051; cv=none; d=google.com; s=arc-20160816; b=Rm3U6+PkzDCRdBDv1YZKqvuvu8GE5vLK6z0TAnxmIwYvz4eV862d642XCAM6/qG2lW k+uzMNhTa9Hr7xxrEIKse4wD74gADRz6OKFZT5Xb0MlkJ9qHjLzgw5fuK0+lmySP9TGv zWiAXsB/C8bLib+VxHo6ZOB4XH3vpzlCRuxm6M7DONkQ+9DgkezAX9Vr5a8swCl5wUkE 8RKVk75rrSNN9YX7oU2W552Df8sEi81eSCtnZ2TPADdkdUd2+izzxvaBUvGlOdQctVAS I4gXO4ftds6qSargerO7Z6Bi94V4infjm6c1Ln+81ojgAxGnWW4yvmhqlfh7fF1jU4R/ EdMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=taq/r7imla+4Lgnjb33bw+q1INT3EC6cj1aV8ZX67f0=; b=Ol14dLNyAuL4mLbXVipsGhq+7QuohEmfXK+qcZXRnXByZSyfy4I+yfCteLvh+Oremu gqq/CvpMThc5Eer0/z/xDOiBwR0TGkJ4CuvFs0+QBGknoVZkqM4cMIl8AWsrn8PbzBeI QLVpNvE58z1MU7Pl4BCa3kj16czb4FSDNrJeVnSsvdOXztTqOdJ49JzE11fOgPrBX1qQ UMfK/eTMC1i7XpPA0kjJYTcm7pMxYy3cjH8XlNVz/89UgeMgTo+LGLIUNJRQyT0CXPXy XMXe5J64T9EjxhA0sVM/Eft7BEeASTLLWO5Bde5n1A6gLJbDkr5vSS562BpcbculH2YK hbtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f0vWDtvk; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k2-20020a17090ac50200b001cab7e7bcccsi2417233pjt.44.2022.04.07.13.07.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:07:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f0vWDtvk; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 458322AD5E0; Thu, 7 Apr 2022 12:31:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346711AbiDGSDn (ORCPT + 69 others); Thu, 7 Apr 2022 14:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346705AbiDGSDm (ORCPT ); Thu, 7 Apr 2022 14:03:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EDA4A995C; Thu, 7 Apr 2022 11:01:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 258E561CD1; Thu, 7 Apr 2022 18:01:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D72B4C385A0; Thu, 7 Apr 2022 18:01:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649354500; bh=+RD7PW8EiSgoK7hk7pP1ZkBkMlJVqYjQb7/8uzaiGkI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f0vWDtvkhfMG14Ich+ZDQF2Vq/dAuwCEG8DnOjCWNORlmA/yWORy3+Dd0EypYeDIK 3cAfvwWSUVtOrIZhXZje1gFhro63bVSV2hSXWIobEc+lXOGtbBHzA68xSYOZBB7smj 5ZtG5IrR8RjJuupPT/vS1L2SQNcu1pDBOQ5KTeG1FXtIzvqyuD1gKMEUfeSZ2MGoNj vxveqTMEkq2fF5IActEasm1sF31cGeCh1eD0+Qoce1oy+2FYkVOxGWbNwxv7/zH8u5 WTB55RJY1jotbCFwNeDsicMACrCkTswdbqVnLYEeUcvU+2fxleXm26s3WhAdKzIYH2 5RuGIcdkNHzfA== Date: Thu, 7 Apr 2022 11:01:38 -0700 From: Nathan Chancellor To: Tom Rix Cc: pkshih@realtek.com, kvalo@kernel.org, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, ndesaulniers@google.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] rtw89: ser: add a break statement Message-ID: References: <20220407175349.3053362-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220407175349.3053362-1-trix@redhat.com> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, Apr 07, 2022 at 01:53:49PM -0400, Tom Rix wrote: > The clang build fails with > ser.c:397:2: error: unannotated fall-through > between switch labels [-Werror,-Wimplicit-fallthrough] > default: > ^ > The case above the default does not have a break. > So add one. > > Signed-off-by: Tom Rix There is also https://lore.kernel.org/r/20220407132316.61132-2-pkshih@realtek.com/. Reviewed-by: Nathan Chancellor I have been using Documentation/process/deprecated.rst as justification for the extra break, warning aside, as all case statements must end in one of the following: break fallthrough continue goto return > --- > drivers/net/wireless/realtek/rtw89/ser.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/wireless/realtek/rtw89/ser.c b/drivers/net/wireless/realtek/rtw89/ser.c > index 25d1df10f226..5aebd6839d29 100644 > --- a/drivers/net/wireless/realtek/rtw89/ser.c > +++ b/drivers/net/wireless/realtek/rtw89/ser.c > @@ -394,6 +394,7 @@ static void ser_idle_st_hdl(struct rtw89_ser *ser, u8 evt) > break; > case SER_EV_STATE_OUT: > rtw89_hci_recovery_start(rtwdev); > + break; > default: > break; > } > -- > 2.27.0 >