From patchwork Mon Oct 24 08:14:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 8216 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp317694wru; Mon, 24 Oct 2022 01:19:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7FGGO/yVRt++9wV9mRRQ4XKfSAQVqr/gLT7SVOy/wXIclGEW6t1iohnmPLG12liekc7A+e X-Received: by 2002:a05:6402:2681:b0:461:cbda:fe4b with SMTP id w1-20020a056402268100b00461cbdafe4bmr3015166edd.124.1666599590107; Mon, 24 Oct 2022 01:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666599590; cv=none; d=google.com; s=arc-20160816; b=jN4rC4ZZrVIakdxpW0zGAThw+gsc1xO/VsHcWQPcKWCoCwB4BHcDUNBoho0w8y/oe/ DFmBnzoO71j3co7ZE/A672MQKE90uH0Fy7NOKrfdw7trvY8Rhr9whroxg6SDw0QdLP8U /aiYUUO+TZH8v6yU+5bE/GQDk8r7Bh3i8AyigoxcmvQMLCjDJthVfWLH+kjMzwB7xfef xucKCoukydlRI/eqIWXw1QMEKY399NmQ4TrFCMRA6muBNXAbqE/1cv+2h7nTCjBmDIom x0gLtLKpQI9GUye1cnWFeRxQm9dcxbbXZYmoYnNDz0wDymFIpkUXI0PzXX3lnmSOH7kI KDZg== 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=A+3+Nkb2S73gxesacyUbEdFYiJN6I3Wp35yTFyJaVTo=; b=OZ1ZE0OaTzdM47XlijSv8LkVmhR+YVHUfk4sdeqBGe9v1VFTo4d0pF8Mc8IKwhEVFV p7QBb7CBqQzOwQAwH1vpeKtuyamoHLfKWoFo40abIDGTmdDdAuVr1gy/AOggb0hfuTSG gLxtL5Y+yAnhvyrwv9coByUdYUh6FOBrPYry5iWS0z/jq3q3hkAUq62FbWIyd8pd3rd7 wK8Bgu4efDB5gMSQPHcbXMiilFmqcpLbtWjPN+o+SYuZN3pOeKXLIIcr/EssVv50YUgw 6CNdL55MWE2vbvKtt+CbegttKmGX5yVpES9ddKEGO+P+4qORA+J2hWm5iBQp3f2Ml0hX CFzA== 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 i5-20020a17090671c500b0073dd7598686si23020833ejk.270.2022.10.24.01.19.24; Mon, 24 Oct 2022 01:19:50 -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 S230203AbiJXIPC (ORCPT + 99 others); Mon, 24 Oct 2022 04:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbiJXIOn (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 56B4B103B for ; Mon, 24 Oct 2022 01:14:35 -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 1omsbO-0000nk-8l; Mon, 24 Oct 2022 10:14:30 +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 05/17] staging: r8188eu: make OnProbeRsp static Date: Mon, 24 Oct 2022 10:14:05 +0200 Message-Id: <20221024081417.66441-6-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?1747556331934411250?= X-GMAIL-MSGID: =?utf-8?q?1747556331934411250?= OnProbeRsp 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 4a0bea5f5052..797c843de616 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -515,7 +515,7 @@ static unsigned int OnProbeReq(struct adapter *padapter, struct recv_frame *prec return _SUCCESS; } -unsigned int OnProbeRsp(struct adapter *padapter, struct recv_frame *precv_frame) +static unsigned int OnProbeRsp(struct adapter *padapter, struct recv_frame *precv_frame) { struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; struct wifidirect_info *pwdinfo = &padapter->wdinfo; diff --git a/drivers/staging/r8188eu/include/rtw_mlme_ext.h b/drivers/staging/r8188eu/include/rtw_mlme_ext.h index b24aae8108b6..52991ec7b3e8 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 OnProbeRsp(struct adapter *padapter, - struct recv_frame *precv_frame); unsigned int OnBeacon(struct adapter *padapter, struct recv_frame *precv_frame); unsigned int OnDisassoc(struct adapter *padapter,