Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1488629pxb; Fri, 20 Nov 2020 10:40:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNpAejA7D4TNgQdsn/L//1lBuAdDMBmRO1FFJUBdci70WrFwJ0fwYUqKkoeMOHOjFA6eTq X-Received: by 2002:a50:8a8e:: with SMTP id j14mr25441064edj.87.1605897647638; Fri, 20 Nov 2020 10:40:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605897647; cv=none; d=google.com; s=arc-20160816; b=mxZvBTw04gVCR7FXP1mrFlbaGfq2byTeLL7hUkMleymnz1a1UPPcH2m0o/1phc6ZZQ /grSOaLFgj3hE2w0+8sGXwo9nh4flt+lsZ2pvjL/OMvJdJXMpn05l0I6lfo7maq+7s2M IQwXS3A5YbZ3N19lvQiXue2zahMnCQCPdhyNP0Or1jCTEBoVTCVFUqBZKnZuAWE2RPJ0 TnCUgZPdd8VNEbzDCpBCYl+k+nxDWbiJJKxgdaCiUmq8WNWQBWSGzluW1JHCO1Jy4jsB gw8YIWI/VCSVxSVFkmcTnSRElF4bgFjaSvPqFQK+nCh1PRPk6tCtxtsuqQJ+sur6DaU/ jc8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Z93wNj7uOD0d2AQEpmwALISlDz6phw2/d0AqibCrZdk=; b=N6euzIYsJ9ce8w/EclnjV7UBebdy+vDYCAff6KNMDxnQKtAjc/fkH1oItztqUZqUSz PK7uNhx1X0wifItH+6CPsTcsgwQ3t5U7QCmysxfc1VY0WnaY0j++5Z/7GzSwjCVYRYzH gCOcP9fQaOX4NU5q3MlBUJ7Ymm7rcxTvM2Di/C/eb6gpgYnK9cIbIUeGDRaT4IyZKVES fjtyVNEv9LE6UkobtoPLkNiE/hglSzArETcaT86o4xiWvbR2Mw19XPoif3CP2g5bIe0i NUbBhtqqzB/br5aEuHxwneKk54hpdL4nx+9XuNpQX7tGrMPwRBzRn1xrkTHUWP6wao3O cUKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ifQuROBo; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p3si2417753edp.84.2020.11.20.10.40.23; Fri, 20 Nov 2020 10:40:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ifQuROBo; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731380AbgKTSiz (ORCPT + 99 others); Fri, 20 Nov 2020 13:38:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:57000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730382AbgKTSix (ORCPT ); Fri, 20 Nov 2020 13:38:53 -0500 Received: from embeddedor (187-162-31-110.static.axtel.net [187.162.31.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EDE4F2242B; Fri, 20 Nov 2020 18:38:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605897532; bh=PPSrmURA609muaJephVoMm0YZbJ0gmnU87bIHWpeduE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ifQuROBobj3rDbFlXDEYdF/LfNP1aCyj4kb0NHLI/UhRkjstWUGjIt5UNFpYlgGmU 8Y75xGMLGA8cInDgyObcrS8WBROJT0pv9yhQeEhD5ou8KNc+CudUXqZx+7DGvLncxw fl4qhgUaH9sCgG16bNK/Xes8QhyDrDBmXFvteWh8= Date: Fri, 20 Nov 2020 12:38:58 -0600 From: "Gustavo A. R. Silva" To: Jes Sorensen , Kalle Valo , "David S. Miller" , Jakub Kicinski Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 117/141] rtl8xxxu: Fix fall-through warnings for Clang Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by replacing /* fall through */ comments with the new pseudo-keyword macro fallthrough; instead of letting the code fall through to the next case. Notice that Clang doesn't recognize /* fall through */ comments as implicit fall-through markings. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 5cd7ef3625c5..afc97958fa4d 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -1145,7 +1145,7 @@ void rtl8xxxu_gen1_config_channel(struct ieee80211_hw *hw) switch (hw->conf.chandef.width) { case NL80211_CHAN_WIDTH_20_NOHT: ht = false; - /* fall through */ + fallthrough; case NL80211_CHAN_WIDTH_20: opmode |= BW_OPMODE_20MHZ; rtl8xxxu_write8(priv, REG_BW_OPMODE, opmode); @@ -1272,7 +1272,7 @@ void rtl8xxxu_gen2_config_channel(struct ieee80211_hw *hw) switch (hw->conf.chandef.width) { case NL80211_CHAN_WIDTH_20_NOHT: ht = false; - /* fall through */ + fallthrough; case NL80211_CHAN_WIDTH_20: rf_mode_bw |= WMAC_TRXPTCL_CTL_BW_20; subchannel = 0; @@ -1741,11 +1741,11 @@ static int rtl8xxxu_identify_chip(struct rtl8xxxu_priv *priv) case 3: priv->ep_tx_low_queue = 1; priv->ep_tx_count++; - /* fall through */ + fallthrough; case 2: priv->ep_tx_normal_queue = 1; priv->ep_tx_count++; - /* fall through */ + fallthrough; case 1: priv->ep_tx_high_queue = 1; priv->ep_tx_count++; -- 2.27.0