From patchwork Mon Oct 24 08:14:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 8214 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp317690wru; Mon, 24 Oct 2022 01:19:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Yg05gfgD1a1z+F1L5xxYxoZtBquH15k1uJ0K0hpAgQh9Cq8RkeM4VJtIZi9ZJZC+VyeID X-Received: by 2002:a17:906:d555:b0:78d:ce55:23af with SMTP id cr21-20020a170906d55500b0078dce5523afmr26051165ejc.524.1666599589770; Mon, 24 Oct 2022 01:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666599589; cv=none; d=google.com; s=arc-20160816; b=PE+tgGZN2+l6mhYLhL5y/Qi1RLYOkcC/EF8aspIeHo+vXkiIJWFn7k/lFWhdkZpT2/ S6OSk4KiJy6VerVoAPZIYgowZZJgqxbmcAplHn2gQVN7Xs0RGjJWX1dlCJ64Cu3TpKm8 RvaH/w+MSRirihmQB0x7fCg5QAwh8mMQN1eB+1foLcNtN4KPWSX87pUHOn/jj+rPtYFG ZqhdRhGU1rUJp52mKzC/IY7dNRfY6KYs/OoljVpjfn9gHIP2SjwUKR7WyjFR/U0HGk8b l4EWNQisZqE0hfTnoKZy+hJlFl2nclg92L5ygMHCuBG2uBOiaD8zedCbYkcIuSJu1vrx 7+IQ== 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=sfK12uvoYHrwuIvcCbLtLZNwVsKJq9m+ELMru+0CvlY=; b=Ve3KW6HcLd1M7qDRFLMD0LufGuousrrAvEWq4bYxyLB0SkLjWdkt8232qnyOIyBhXB GxEjWA0qAyijgb9r4qsm1DVo3O9Mz8gMMOJsmvEsRmuw7/Kpml3XcLPYnZC5KL9xTOFh J1Q0UZx0cjkNaonKNOEvfwqzOquUTRv8dShJyJiF3ECJ4P0rnoGq/9MhAu6A3/Pgc3kF qN2W0e8uG5DC1dlL1rPUSFm18WwiE+n/RBKeu9w3eG5LcJqTR99UpwJCpq7oxZDbxUy0 HO2YdyQOX/YONuQ9lFZIAu8C+dcP9ftXRdSfLuuzPgmPI2qmVv4IiMEFCYS4wW0QJtaa lj+g== 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 sc11-20020a1709078a0b00b007303db545e6si26975762ejc.786.2022.10.24.01.19.24; Mon, 24 Oct 2022 01:19:49 -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 S229494AbiJXIOy (ORCPT + 99 others); Mon, 24 Oct 2022 04:14:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbiJXIOh (ORCPT ); Mon, 24 Oct 2022 04:14:37 -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 60F93220DA for ; Mon, 24 Oct 2022 01:14:32 -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 1omsbM-0000nk-5v; Mon, 24 Oct 2022 10:14:28 +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 03/17] staging: r8188eu: make OnAssocRsp static Date: Mon, 24 Oct 2022 10:14:03 +0200 Message-Id: <20221024081417.66441-4-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?1747556331345847999?= X-GMAIL-MSGID: =?utf-8?q?1747556331345847999?= OnAssocRsp 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 4e7d9a273fe4..0b46da9de47c 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -1319,7 +1319,7 @@ static unsigned int OnAssocReq(struct adapter *padapter, struct recv_frame *prec return _FAIL; } -unsigned int OnAssocRsp(struct adapter *padapter, struct recv_frame *precv_frame) +static unsigned int OnAssocRsp(struct adapter *padapter, struct recv_frame *precv_frame) { struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)precv_frame->rx_data; uint i; diff --git a/drivers/staging/r8188eu/include/rtw_mlme_ext.h b/drivers/staging/r8188eu/include/rtw_mlme_ext.h index 41e31cec9abe..c2b1aa2f378b 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 OnAssocRsp(struct adapter *padapter, - struct recv_frame *precv_frame); unsigned int OnProbeReq(struct adapter *padapter, struct recv_frame *precv_frame); unsigned int OnProbeRsp(struct adapter *padapter,