From patchwork Mon Oct 24 08:14:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 8213 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp317576wru; Mon, 24 Oct 2022 01:19:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7XlZqeaqUC8qr6dtufJ0E3+ZvfwTd2gmUst/q254ImJbrng2+ubwf3p8Zt2wde+rvcuKi3 X-Received: by 2002:a05:6402:5202:b0:461:b7e3:e6b7 with SMTP id s2-20020a056402520200b00461b7e3e6b7mr5047311edd.282.1666599562270; Mon, 24 Oct 2022 01:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666599562; cv=none; d=google.com; s=arc-20160816; b=WMH8yPQdwW27wioauRrpm0oSEt9sIjjmvLuFl82GP80oTg6TePtELTv6+33vd6CdqB 3xK5cQgk8PMjHPca4FbdtTZkkgCohaXeKuGK5gLKZbD4jspmXiQ7bkb25RcWWUEpXVIk ZkLOPJd7sVMdU/k0oR8ZAYybMpu7xhd/z0f2CiujDKjjfDLV0JjOIk1h9ex8BjMOrBNb jV26ir7KDAiuK/7NbWE2BR7d2HNWg6xZlkHWO4VPX5Zk+ML1igOn36umDzxNs/KvA4dx 6Z9yXr1ZwlJmf/j2pb0lbeL4z406kxSnGaSUoc92jbTil+dVyySK1X4iD3JWsomCNGQR msxQ== 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=jM4qZkS6TgVqeCGVi4CVJ67Nr8Nphn0RLAoHtITAFtQ=; b=ByPiO0HZhEkIo0VxJAgJoJ6dirIqfF4zqlW7lk0wEs6ZmESyJa0SOzzhtH7jnGjy6G rkL7LxES6KOG21673JIbMGkv/AFy5VHFtnb9nO/PYX4W3KVhnApWcNQZyLmnlc7w2yAz 6vDI0NZQc5BK/CveFRvz2duTDf4nDc+kLg1yRjtMvdLnhOtL8HCJNUl5y7W2yyVcBZYU PchN+hr7JshKbwDbhg8bjv42PTNtfSj6S86TDcg+O2tZxdIhzR/1N5Di/vjgcTTL87nU 1Jkj8Pyv6Lyzkh8q69YG7JO+FemNKvTINzkxix1i/dvWFEi6ndgMoQLPq3nJ69YUY1GU mYGA== 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 hs40-20020a1709073ea800b0077cdcd4ed23si29264802ejc.498.2022.10.24.01.18.58; Mon, 24 Oct 2022 01:19:22 -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 S229967AbiJXIOt (ORCPT + 99 others); Mon, 24 Oct 2022 04:14:49 -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 S229937AbiJXIOg (ORCPT ); Mon, 24 Oct 2022 04:14:36 -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 C353FB1C9 for ; Mon, 24 Oct 2022 01:14:31 -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-UY; Mon, 24 Oct 2022 10:14:29 +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 04/17] staging: r8188eu: make OnProbeReq static Date: Mon, 24 Oct 2022 10:14:04 +0200 Message-Id: <20221024081417.66441-5-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?1747556302857206873?= X-GMAIL-MSGID: =?utf-8?q?1747556302857206873?= OnProbeReq 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 0b46da9de47c..4a0bea5f5052 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -447,7 +447,7 @@ Following are the callback functions for each subtype of the management frames *****************************************************************************/ -unsigned int OnProbeReq(struct adapter *padapter, struct recv_frame *precv_frame) +static unsigned int OnProbeReq(struct adapter *padapter, struct recv_frame *precv_frame) { unsigned int ielen; unsigned char *p; diff --git a/drivers/staging/r8188eu/include/rtw_mlme_ext.h b/drivers/staging/r8188eu/include/rtw_mlme_ext.h index c2b1aa2f378b..b24aae8108b6 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 OnProbeReq(struct adapter *padapter, - struct recv_frame *precv_frame); unsigned int OnProbeRsp(struct adapter *padapter, struct recv_frame *precv_frame); unsigned int OnBeacon(struct adapter *padapter,