From patchwork Mon Jun 17 16:32:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 10999771 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 84DB61580 for ; Mon, 17 Jun 2019 16:33:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 799C3288A0 for ; Mon, 17 Jun 2019 16:33:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E002288B8; Mon, 17 Jun 2019 16:33:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 87641288B4 for ; Mon, 17 Jun 2019 16:33:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Bjz88iSABWHz5FJG77HyG8V+bOmn6ALfVYse9cgUcdU=; b=DMc6dVCIbz5f3o s6Oe8uCnUOU4zO/ODeViAxtN0dQNv3KLHTEKuRQXwA9iH5xjSTkoAWi1jzMR+etJAN/9+GRrKpO1c 92lKn19EogMcPZl0IkwVLHPy9vTCLH9OPC810JhLUMLgzXrDm3HJ1jIbaKuZvH0SB9gANQLpdzM++ jBYUjft3gn8UaQDWLvRWebOmNqZ3hcAkevVdLipmd4FB5eXfxJwb2njO42PLHjigQlwI3BmdXr3NC d3GbVRoo0foxCISeCNpUEnQzo03La2KbQ1oYp/Ln7fCFa5e9n6VJMzbo59Zp5He2ZfOeqC+x2fZ8x 7ywO/UoVqoWjHzSFcMQw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hcuZB-0005qG-64; Mon, 17 Jun 2019 16:33:09 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hcuZ8-0005oD-L5 for ath11k@lists.infradead.org; Mon, 17 Jun 2019 16:33:07 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 149B460F3E; Mon, 17 Jun 2019 16:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1560789186; bh=Agq0fS2PRCtJFqDIv9pKqvMRnA07qdntSbM5aUzvbYI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Z8LJNRTfp0ada7egEUVv31UeoAvHmIv0PqVU+B280e0/kKB0cIGuCReHSkLYB5UUD E4nJJIOiivLYT+x2y4qa5ntUPL4ugPhx/gUijqRSYf3M24vLI5ANdBzGH0KJiVH1io ioDL2DMkd7rfmub/oNon/KuwZEPi1rGDbIPEBfh0= Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 48AE5607DE for ; Mon, 17 Jun 2019 16:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1560789185; bh=Agq0fS2PRCtJFqDIv9pKqvMRnA07qdntSbM5aUzvbYI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iLgW9+xpb8KZKR7DnHiyzsWl6GVakpR8HOrGTj1pbpt+0s4SJha0dJhIkXuCKj0Oi kE2UL2swPWrJYYEzYuriiGhKiAMXHLoZSdhgQ3nEH/HE8GkolHsNnf9SdRoqpN9Grz NY24WAonYBN3yLpwyXF5KXerV4OIMlCofmynd5Wg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 48AE5607DE Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: ath11k@lists.infradead.org Subject: [PATCH 2/5] ath11k: this statement may fall through [-Wimplicit-fallthrough=] Date: Mon, 17 Jun 2019 19:32:56 +0300 Message-Id: <1560789179-3857-2-git-send-email-kvalo@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560789179-3857-1-git-send-email-kvalo@codeaurora.org> References: <1560789179-3857-1-git-send-email-kvalo@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190617_093306_731453_C442FD3C X-CRM114-Status: GOOD ( 10.02 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP With W=1 GCC warns: drivers/net/wireless/ath/ath11k/core.c:757:14: warning: this statement may fall through [-Wimplicit-fallthrough=] vers/net/wireless/ath/ath11k/mac.c:1332:25: warning: this statement may fall through [-Wimplicit-fallthrough=] drivers/net/wireless/ath/ath11k/dp.c:133:6: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/core.c | 1 + drivers/net/wireless/ath/ath11k/dp.c | 1 + drivers/net/wireless/ath/ath11k/mac.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c index be4f86a0f83b..26fdcb161965 100644 --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -755,6 +755,7 @@ static void ath11k_core_restart(struct work_struct *work) break; case ATH11K_STATE_RESTARTED: ar->state = ATH11K_STATE_WEDGED; + /* fall through */ case ATH11K_STATE_WEDGED: ath11k_warn(sc, "device is wedged, will not restart radio %d\n", i); diff --git a/drivers/net/wireless/ath/ath11k/dp.c b/drivers/net/wireless/ath/ath11k/dp.c index 0aec840fc360..be10e98b0bcd 100644 --- a/drivers/net/wireless/ath/ath11k/dp.c +++ b/drivers/net/wireless/ath/ath11k/dp.c @@ -138,6 +138,7 @@ int ath11k_dp_srng_setup(struct ath11k_base *ab, struct dp_srng *ring, break; } /* follow through when ring_num >= 3 */ + /* fall through */ case HAL_REO_EXCEPTION: case HAL_REO_REINJECT: case HAL_REO_CMD: diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index ab71e121e107..fd133813636e 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -1330,7 +1330,7 @@ static void ath11k_peer_assoc_h_he(struct ath11k *ar, arg->peer_he_tx_mcs_set[WMI_HECAP_TXRX_MCS_NSS_IDX_160] = v; arg->peer_he_mcs_count++; - /* drop through */ + /* fall through */ default: v = le16_to_cpu(he_cap->he_mcs_nss_supp.rx_mcs_80);