Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp33896pxb; Wed, 18 Aug 2021 15:12:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJuXgMIu/z48bvPQcOHgsaVrOKuWrKCDR7kOZq7v6xJI+7faqgzaY0fXUwfYKm3WarrP1G X-Received: by 2002:a05:6638:265:: with SMTP id x5mr9813254jaq.23.1629324733948; Wed, 18 Aug 2021 15:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629324733; cv=none; d=google.com; s=arc-20160816; b=su/USHRc3DkPSLT0QMNTDP03Pw5uh5fSBSj49BOHYKF7Li8u8Cn634CY38CBxZsMAT Ss8+zDrkU/iCcifO521v77R0keVZM1zz5YLjsDnzUAWvv+NeDPg6HxBPjUP07t0fzgxL EAYc5KyyGL9FWJgAef3GKy/uPCyEiI36pU+76L/yNP29ERhqV76Zt2EZ+rRCaKx8HSw9 MmGGarN3EzgQuLeXQ0HsMj5ApaZSMis06CZxWCjT7BZEws8P2n1PAVKD+ADQ4qrCOX/q NoN0frSASwSJ3eV+i0enZ7jUlx2CoEieKsJApoI9C3zsk+0lhedVBmAtKFQysUhXnLm+ KMjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=zIrAXWLGV5rgQIEvsp174p8DrB72yKFV3CMl5QfAE6s=; b=gsIJuuzR+BIdmUOhX0UmmCNbDEEZfwp63wj4jgvax91+DTVW6LzHPPExTh2WqnlbgP uBYXCokFXL4owTFH6G41uE7L37a0RIa1HKDNHX5be6j3EeFJPGZu4Vxq1zyFRJjaiWUa G1gxFe2YWFeXjTViMUYOEDDTYBLk6sbOXXVn3CFpxVOVRcLFr1654cwzWXQfYkHOEWSi qXuDvr8z1QCONnbDclWZ2s5GfXQk4FfrPHeL6AgWEQ1uXfIXGN/Hjao5Snncwgwzj7xP 9m0nzv0nI/UCa8aRK3V8mnTseXUUrIj16lhtN+2UHdXpcuVIROJ8BmXbN7Vlxziac9PD Jgag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cmQsFyNW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 j23si949923jam.32.2021.08.18.15.12.02; Wed, 18 Aug 2021 15:12:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=k20201202 header.b=cmQsFyNW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S234491AbhHRWLw (ORCPT + 99 others); Wed, 18 Aug 2021 18:11:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:47452 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234362AbhHRWLt (ORCPT ); Wed, 18 Aug 2021 18:11:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A61F2610D2; Wed, 18 Aug 2021 22:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629324674; bh=5o0UqbvakauILVn4+9hHpTa5fsfopsPUcCG31EYkD2o=; h=Date:From:To:Cc:Subject:From; b=cmQsFyNWBn9CiXT/g6KTF8i37CvcvN3+XbdWjGJZTnV6I+n6p6ykj/gk0cbLT9Tu8 EeRTiQXNsC8vgmCSQKfVoJSo6qXjURKMlBVk2k9F93FTnKQ1mc3hEWPopK0ZXG20sr bGZ6bUfJ2tbsvfCcZZqtAioJingRYXjFQQpuJDiDzBLuBkTj499lfTwrzRLK4oPY1+ 7zE+K/prm/FdAJ1v4mPyYvC4+mn0TVx+NtqoUrL5X/wrN0WqRJcpduU663tq5xquVR SkK2KZf4IG3zF/tnJIYOiNz7NWbpa/XwCm7RUAY0d5fFTe42c6iQB4g9zu882QXV/K YTVRJEDgrWmxA== Date: Wed, 18 Aug 2021 17:14:18 -0500 From: "Gustavo A. R. Silva" To: Larry Finger , Phillip Potter , Greg Kroah-Hartman Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH][next] staging: r8188eu: Fix fall-through warnings for Clang Message-ID: <20210818221418.GA311735@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following fallthrough warnings: drivers/staging/r8188eu/core/rtw_mlme_ext.c:1498:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] drivers/staging/r8188eu/core/rtw_wlan_util.c:1113:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] drivers/staging/r8188eu/core/rtw_wlan_util.c:1147:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] drivers/staging/r8188eu/core/rtw_wlan_util.c:1405:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] This helps with the ongoing efforts to globally enable -Wimplicit-fallthrough for Clang. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 1 + drivers/staging/r8188eu/core/rtw_wlan_util.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 61b239651e1a..590a4572c23f 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -1495,6 +1495,7 @@ unsigned int OnAssocRsp(struct adapter *padapter, struct recv_frame *precv_frame break; case _ERPINFO_IE_: ERP_IE_handler(padapter, pIE); + break; default: break; } diff --git a/drivers/staging/r8188eu/core/rtw_wlan_util.c b/drivers/staging/r8188eu/core/rtw_wlan_util.c index cddacf023fa6..e0ce2b796abe 100644 --- a/drivers/staging/r8188eu/core/rtw_wlan_util.c +++ b/drivers/staging/r8188eu/core/rtw_wlan_util.c @@ -1110,6 +1110,7 @@ unsigned int is_ap_in_tkip(struct adapter *padapter) case _RSN_IE_2_: if (!memcmp((pIE->data + 8), RSN_TKIP_CIPHER, 4)) return true; + break; default: break; } @@ -1144,6 +1145,7 @@ unsigned int should_forbid_n_rate(struct adapter *padapter) if ((!memcmp((pIE->data + 8), RSN_CIPHER_SUITE_CCMP, 4)) || (!memcmp((pIE->data + 12), RSN_CIPHER_SUITE_CCMP, 4))) return false; + break; default: break; } @@ -1401,6 +1403,7 @@ unsigned char check_assoc_AP(u8 *pframe, uint len) } else { break; } + break; default: break; -- 2.27.0