From patchwork Mon Oct 24 08:14:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 8205 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp317294wru; Mon, 24 Oct 2022 01:18:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4olpuaALhvCiO5qgpRxjF4ODmxqrsde4PxfzvE9fzlh71s75YTwdupqMR0F3l32SWDqIOu X-Received: by 2002:a17:906:8451:b0:79d:af69:8a20 with SMTP id e17-20020a170906845100b0079daf698a20mr12018838ejy.406.1666599511025; Mon, 24 Oct 2022 01:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666599511; cv=none; d=google.com; s=arc-20160816; b=Tw9wMXRCWN3uEiweNLTEM5vx//dSQi8mfKZHsi4zy7P+j3q1F1yqzW9vb8WPmQ498u IVgfMnbT1BDq+Dgavy+n5rXH4N73ZFH9acDfrmdWkf5Vrd87f9ZWr7GSpv7Sj1Wx99b6 TftqU6zRGOihm7VRJQxGoRyZCGyKn7eJYGu4bCRMP4f2965SiGjHt7rpkQArNKENwBGL vdzs8rKk/8U9t7WW49Psq11wpuxRWbK94zsqjpy5m4T0mhlvdayNl10U13yFZtezL4aY tzIz9CYPnr9h80WW5dgJo4M8IuoWwIpMcsBiU9MWmbtiPAxK543b0l5YvA9S66M8B5VZ xcPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RHbZ1/pSiq7pnlArYB2J0eeZwhgcP4taNbEADuy5E90=; b=ltWpKl8BzLhp8Rw8pK7DRY11Fptqw3Qs6sVYeGM7+5FfN/LbwdqmYIAew7oaK2O9Nv sB9mcLMQVipD5ZztN1tt3LQC5wecw9w2xNZ3l6IY0k7pZwrI73x/tU7B1L/Ggcq5NR+7 RVvsaWUgEORdXCrEZm9x7V9gzD8kTt4MNg1R5JMsc1dnYqKMhZpi+ckr+NymJ87u/aKn 94FpFl34s2P3XT5PIQkwE4hOm5Y7uxKUC4cPWVQpZS2W4RkS/s/5ndM3+zGl1ZrhwOva p4eSb4Am5TwmobtjJihbc8Athd+LTsW0tEUPEh+dX9i1Y/lKaygqowjdtoKyq3Sl1RST 0vMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv11-20020a17090760cb00b00780f0b45416si31411962ejc.622.2022.10.24.01.18.07; Mon, 24 Oct 2022 01:18:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230234AbiJXIPL (ORCPT + 99 others); Mon, 24 Oct 2022 04:15:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbiJXIOn (ORCPT ); Mon, 24 Oct 2022 04:14:43 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56802D5C for ; Mon, 24 Oct 2022 01:14:36 -0700 (PDT) Received: from ipservice-092-217-079-032.092.217.pools.vodafone-ip.de ([92.217.79.32] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1omsbS-0000nk-BB; Mon, 24 Oct 2022 10:14:34 +0200 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 07/17] staging: r8188eu: make OnDisassoc static Date: Mon, 24 Oct 2022 10:14:07 +0200 Message-Id: <20221024081417.66441-8-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221024081417.66441-1-martin@kaiser.cx> References: <20221024081417.66441-1-martin@kaiser.cx> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747556248819797988?= X-GMAIL-MSGID: =?utf-8?q?1747556248819797988?= OnDisassoc is used only in rtw_mlme_ext.c. Make this function static. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 2 +- drivers/staging/r8188eu/include/rtw_mlme_ext.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 07ed3d704c2d..dc836e5878d1 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -1458,7 +1458,7 @@ unsigned int OnDeAuth(struct adapter *padapter, struct recv_frame *precv_frame) return _SUCCESS; } -unsigned int OnDisassoc(struct adapter *padapter, struct recv_frame *precv_frame) +static unsigned int OnDisassoc(struct adapter *padapter, struct recv_frame *precv_frame) { u16 reason; struct mlme_priv *pmlmepriv = &padapter->mlmepriv; diff --git a/drivers/staging/r8188eu/include/rtw_mlme_ext.h b/drivers/staging/r8188eu/include/rtw_mlme_ext.h index b4868598eba8..c1bc554202a0 100644 --- a/drivers/staging/r8188eu/include/rtw_mlme_ext.h +++ b/drivers/staging/r8188eu/include/rtw_mlme_ext.h @@ -536,8 +536,6 @@ void start_clnt_auth(struct adapter *padapter); void start_clnt_join(struct adapter *padapter); void start_create_ibss(struct adapter *padapter); -unsigned int OnDisassoc(struct adapter *padapter, - struct recv_frame *precv_frame); unsigned int OnAuth(struct adapter *padapter, struct recv_frame *precv_frame); unsigned int OnAuthClient(struct adapter *padapter,