From patchwork Mon Oct 24 08:14:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 8220 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp318074wru; Mon, 24 Oct 2022 01:20:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7E1YqsjW31ZfN1K0aAKQlNwDFdU6RReCr6Sq3Mwj/p+47CqzM52RL9lvwnN7o8lv8sE94J X-Received: by 2002:a05:6402:1ccd:b0:459:aa70:9e12 with SMTP id ds13-20020a0564021ccd00b00459aa709e12mr29589297edb.206.1666599657650; Mon, 24 Oct 2022 01:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666599657; cv=none; d=google.com; s=arc-20160816; b=mUijY21szJ1Sn+6STRuUQ9+dqkeoYSd32uQ/4mw8XiwhY3nQRkX/HP6lSFfcINtbPH uqlGF5kJfmAVFjBMpKU0DWyK0VIB/Y8BfJaWSnaY8QcBXJFhgpIgZz397ri2R0B4LNyv oTCYO2pufGW/Khx7orosfcU35Q+oQ3rTyjvN0SRm3yMwGMiZ4KT8/B0EptRK2Mr1UFgL DrjawGCrrms1o2PKnlw9Pc0o2Or6LspYSzWjzQOsyKYBm6jws531FGcN+5IT1qCF3IIS pL8YxIAOiB3FIRw5u1EM91bqdAEnVooidrlmRSe4yB4RlHSObqrO5K7rBjL2Ql+NlgeO LEvw== 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=9QcN6OwUNoY4DnfdHuiyMgQmXUmmSZqxkKjEBx/+8Jc=; b=tSJJZ2OxsTrjaFsLqxzahfDrXLV0S0Uppti8didrpU/rvYenxlrZFutYrJAv98AFC8 /35H1E6U0VZCcSPl9XPmjaQUD5dWw5rqwdv+pvv7y4K0MO9qYkgK6kdd2UJyaZ/cMOOm 3tPK4jpTN3AIfWUVbvbunOIqApAPJwwRjrmr0vCRXny/JokS8FEt+GugzK87c1KuybY7 a59+GCt8i5kdxoOQAqNSWA9X2rQ2Y929pvMmDH2uot7Wr6TfrcpdfMdjH3pfvaARt6+Z VFOxHFE9/ZN7XV2ZJkWPxNt58g94n56ZJNsYxs6ciOnlpyHr4XEkNGQ64uZyv1XYU/8V 5+kw== 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 ji20-20020a170907981400b007820e1a4302si12930038ejc.675.2022.10.24.01.20.33; Mon, 24 Oct 2022 01:20:57 -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 S230274AbiJXIPh (ORCPT + 99 others); Mon, 24 Oct 2022 04:15:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230210AbiJXIOu (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 1673524BC0 for ; Mon, 24 Oct 2022 01:14:44 -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 1omsbV-0000nk-WA; 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 10/17] staging: r8188eu: make OnAction static Date: Mon, 24 Oct 2022 10:14:10 +0200 Message-Id: <20221024081417.66441-11-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?1747556402968427362?= X-GMAIL-MSGID: =?utf-8?q?1747556402968427362?= OnAction 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 6c97df6f88fe..08f193781776 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -3906,7 +3906,7 @@ unsigned int OnAction_p2p(struct adapter *padapter, struct recv_frame *precv_fra return _SUCCESS; } -unsigned int OnAction(struct adapter *padapter, struct recv_frame *precv_frame) +static unsigned int OnAction(struct adapter *padapter, struct recv_frame *precv_frame) { struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)precv_frame->rx_data; diff --git a/drivers/staging/r8188eu/include/rtw_mlme_ext.h b/drivers/staging/r8188eu/include/rtw_mlme_ext.h index 14df83574478..f192733a5c53 100644 --- a/drivers/staging/r8188eu/include/rtw_mlme_ext.h +++ b/drivers/staging/r8188eu/include/rtw_mlme_ext.h @@ -538,8 +538,6 @@ void start_create_ibss(struct adapter *padapter); unsigned int OnAuth(struct adapter *padapter, struct recv_frame *precv_frame); -unsigned int OnAction(struct adapter *padapter, - struct recv_frame *precv_frame); unsigned int OnAction_back(struct adapter *padapter, struct recv_frame *precv_frame);