From patchwork Mon Oct 24 08:14:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 8209 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp317444wru; Mon, 24 Oct 2022 01:18:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7zq0yLGRiuvL5PbF/CXvGhIS4UZcDTjL3WxcCMHzVJZNJBVym+Z2mO0OjfB3nngS5CfAup X-Received: by 2002:a17:906:db02:b0:780:24e:cf9 with SMTP id xj2-20020a170906db0200b00780024e0cf9mr26674308ejb.460.1666599539593; Mon, 24 Oct 2022 01:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666599539; cv=none; d=google.com; s=arc-20160816; b=DJdIYIYDdQHfDV8mAb1G7mLCGPxwhXk45gG+YPKYwlUwaeHjsUenMdDjLq9RVqkmzx B1rStSEitus3DiODEDLR5MZ1SF0GvKTOjUgWo63ohv8n242S9F2yH4OLnZPz23jS1+a/ 6LGrPapUr9+k8VDH/lbdytDby99UWphzRjoAy2P0dGh1Pd+QcbF4HB41bIoCm2toVDhy kYOm3/tL5aOBkZlN+81LBDcS8ZIiY/5QWfRtHR64B7l8G8JJ55vT7vHZBPpL+HCmgOMO x9Jkzpox7XwjUUu+xIr9ZnljanYsVa4e2tpnciyr0kPb9aKXpvw5jrPni6QUy38gXWKi +ZfA== 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=qmV2meQym8sG4tVFK0NYmAdCJSxNDDZK4OVfc4Mxsbs=; b=K9a7JehHPQQXZhftXr43SSCmxMDj1jHXse25qh4gmwTpel5daXTQmrRObx3huK4nP7 4U08AsKbqZ32ejlSbZ6w1Gk5pYroc29di/LufExYTX464PXYmxc+kB07x1InCJY93jFB Z4cE7qaBsbsuRyJGDOBdGXNkEf5KToCiOb2iOn1f1mb60HbsIsOQllkBZ17/YK4AFOfy fNKWdT99pKI0W7UQ+vL95P17pe8iD0xHIseFEHCiLgKUrEwaG/8cvY1B++ZbB+Gvg1bX T3pgj2WmnLctWtYeDwZprUbBTpuf4obStnU7A3LYpmsxT+LNJvWskN+rJ8f18G9mCUqm C3zA== 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 hc40-20020a17090716a800b007a7d37e4683si2557607ejc.862.2022.10.24.01.18.36; Mon, 24 Oct 2022 01:18:59 -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 S230270AbiJXIPb (ORCPT + 99 others); Mon, 24 Oct 2022 04:15:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230206AbiJXIOu (ORCPT ); Mon, 24 Oct 2022 04:14:50 -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 BD91722B12 for ; Mon, 24 Oct 2022 01:14:42 -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 1omsbW-0000nk-T9; Mon, 24 Oct 2022 10:14:38 +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 11/17] staging: r8188eu: make OnAuth static Date: Mon, 24 Oct 2022 10:14:11 +0200 Message-Id: <20221024081417.66441-12-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?1747556278769310878?= X-GMAIL-MSGID: =?utf-8?q?1747556278769310878?= OnAuth 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 | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 08f193781776..34b41931fb66 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -651,7 +651,7 @@ static unsigned int OnBeacon(struct adapter *padapter, struct recv_frame *precv_ return _SUCCESS; } -unsigned int OnAuth(struct adapter *padapter, struct recv_frame *precv_frame) +static unsigned int OnAuth(struct adapter *padapter, struct recv_frame *precv_frame) { unsigned int auth_mode, ie_len; u16 seq; diff --git a/drivers/staging/r8188eu/include/rtw_mlme_ext.h b/drivers/staging/r8188eu/include/rtw_mlme_ext.h index f192733a5c53..f77e6dc81831 100644 --- a/drivers/staging/r8188eu/include/rtw_mlme_ext.h +++ b/drivers/staging/r8188eu/include/rtw_mlme_ext.h @@ -536,9 +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 OnAuth(struct adapter *padapter, - struct recv_frame *precv_frame); - unsigned int OnAction_back(struct adapter *padapter, struct recv_frame *precv_frame); unsigned int on_action_public(struct adapter *padapter,