From patchwork Mon Oct 24 08:14:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 8207 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp317355wru; Mon, 24 Oct 2022 01:18:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4JWCLTyWdgwH/iZfFKjyOg95WOu5oOoqhlNw3cOU1yIXmPpgPyWworVbvBwi+UqU2OlrMl X-Received: by 2002:a17:907:78d:b0:740:33e1:998 with SMTP id xd13-20020a170907078d00b0074033e10998mr26990015ejb.162.1666599522534; Mon, 24 Oct 2022 01:18:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666599522; cv=none; d=google.com; s=arc-20160816; b=HSe7sY7K2cAILtHK87c5+nnBcMH0WZIa1NOODPhdChvvuKki4rn8ufSvKcQGVyOnv0 FT11/cVIU2hjkNybQJYdrlpwZmYl80Hhx0xZhtapXTsPyQ67wf5gxGK7eFdhQKRGQLUG mA+p8pV1TEfnJ3i8UQSjeUZdvZSDGer1+9KK9GC7jVe7g2RQoiXnbQd1zcgCsoFHY3zG ct9UzNRFKNedZfvRqTz3BfjsVGsy4bxza6scEfBK0c5mxkMt6K+EyZoT/GG5AMVTWTFu MX0OahMiTNMi081MGtbF5BLrmtR0rPvZz8IvcgVwe71ar5JHembLfDpyW8xk2uO3C5IP e5wg== 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=7EQ5FdIcpY052dwWuNKHn7VP0IcjKzQ0K3K4t/6bwf0=; b=hL8P1P4UYz4yaIqhB1XTerse67JL2Q0PaJVqiQwIrbQI65oRS5f+PRLQvfZITGlJLb lkS0qh+RGHJax+ajWceYUZAOTmatdRw5iYwMDEh1wiePXVZf/Q/Q4HvAU8eWyKYz73oP IIbTzlLtEEActPvkDrahrAiCxt/EN3N3Z2s+7TgclACkxNkOWXyhTcxH1dd+b3cjAGXn wHh/Zu8FbwzdPGx0/c47vTSOdHwcAcsIh23HzOPSRiUQloqGjAsv4kh6eHXxS9wj6OOq j0vWFFGOLUThhRh4E2FAg8nG5cBJidyIk8QjeFGnciaLEGdfIq+PPvfUFQC/6Nx13jOl rs6g== 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 br13-20020a170906d14d00b007a46fa50b26si3614939ejb.517.2022.10.24.01.18.18; Mon, 24 Oct 2022 01:18:42 -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 S230220AbiJXIP0 (ORCPT + 99 others); Mon, 24 Oct 2022 04:15:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbiJXIOu (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 BD01822282 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 1omsbV-0000nk-1H; Mon, 24 Oct 2022 10:14:37 +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 09/17] staging: r8188eu: make OnDeAuth static Date: Mon, 24 Oct 2022 10:14:09 +0200 Message-Id: <20221024081417.66441-10-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?1747556260787462425?= X-GMAIL-MSGID: =?utf-8?q?1747556260787462425?= OnDeAuth 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 7c9ca0c71b65..6c97df6f88fe 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -1396,7 +1396,7 @@ static unsigned int OnAssocRsp(struct adapter *padapter, struct recv_frame *prec return _SUCCESS; } -unsigned int OnDeAuth(struct adapter *padapter, struct recv_frame *precv_frame) +static unsigned int OnDeAuth(struct adapter *padapter, struct recv_frame *precv_frame) { struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)precv_frame->rx_data; unsigned short reason; diff --git a/drivers/staging/r8188eu/include/rtw_mlme_ext.h b/drivers/staging/r8188eu/include/rtw_mlme_ext.h index 866d358f5f10..14df83574478 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 OnDeAuth(struct adapter *padapter, - struct recv_frame *precv_frame); unsigned int OnAction(struct adapter *padapter, struct recv_frame *precv_frame);