From patchwork Mon Oct 24 08:14:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 8215 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp317691wru; Mon, 24 Oct 2022 01:19:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6oGg5nnPBDM4lhc+UPCaxn8Bn7JAVv61Sw57Q+gXfkVCB4zAK1g++q2EDM/EYsvlpTtr1l X-Received: by 2002:a17:906:8470:b0:78d:b531:7d10 with SMTP id hx16-20020a170906847000b0078db5317d10mr26799039ejc.275.1666599589753; 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=UkIfYWaHflu8M9ffNE0de0tyLdx4nqA3N3SMIC2rHg1z5EdeqU7ALAVvs1jn7hwR9v sBSEv46Q1Kb01KAI38T1qmOCZTwpsaVQR03tWNaWxyuR8Imcz3Tut9L44mwo3eOXYoj0 Sngegb6QZBAXpfhPW2binZhhGaTSZj6PnJ2H6KGKSMuBYSWJJuWiYu+QGdOGGyr41FIO VX4i+i8+emptl5QJKok3cmV9sA0naSOUfGXDmusxaJ3kC7+tg9y0SOXarGTkTpsdZQ6w tsNow2e8DOlYjcES7Fg6lodFiTAcXH5exINXnal+CbOERYj1rTmoRO77M7qd/XTkNjkm k57g== 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=xH7Ewj7K8iCrTeiEr/tpbxPvjLpLc5UUHdyA8m7Ry48=; b=fEw8wf0R6KW/VauSZ6phcohKABBQWj/RMoPpT2djZZKLhhwS37IPGRYKDnSjPe80pa 0Xd6QHFMSH6b7B+FLs8lJyRqfpwnY+P/iJM0X+r/bRxaZbcok5EKYl1cBzOixfZMQlA5 QUgVYh57ELdYPX0rYPnmmrmbjsNuhtqzwyYeQNKN1AV90RC5l/A5QQbvmqLWkW3tfQk8 xVhwQZv6UCxvMH2VOiQGeRIbHGO/t+aOYeB5nZtXUbbtyUyH/bs8c6VUrPd9FXOjCWyn vSSZc1V82wj5kezaRyMzST1jiTJ3hDM3KJGcCS5wmFsSJYOImUxefkoXb/m2hPooNQNy Z1ag== 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 go33-20020a1709070da100b007a8beb3aa4csi1947924ejc.872.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 S229845AbiJXIPG (ORCPT + 99 others); Mon, 24 Oct 2022 04:15:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230183AbiJXIOn (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 E61831276A for ; Mon, 24 Oct 2022 01:14:36 -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 1omsbQ-0000nk-DZ; Mon, 24 Oct 2022 10:14:32 +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 06/17] staging: r8188eu: make OnBeacon static Date: Mon, 24 Oct 2022 10:14:06 +0200 Message-Id: <20221024081417.66441-7-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?1747556331052387655?= X-GMAIL-MSGID: =?utf-8?q?1747556331052387655?= OnBeacon 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 797c843de616..07ed3d704c2d 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -561,7 +561,7 @@ static unsigned int OnProbeRsp(struct adapter *padapter, struct recv_frame *prec return _SUCCESS; } -unsigned int OnBeacon(struct adapter *padapter, struct recv_frame *precv_frame) +static unsigned int OnBeacon(struct adapter *padapter, struct recv_frame *precv_frame) { int cam_idx; struct sta_info *psta; diff --git a/drivers/staging/r8188eu/include/rtw_mlme_ext.h b/drivers/staging/r8188eu/include/rtw_mlme_ext.h index 52991ec7b3e8..b4868598eba8 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 OnBeacon(struct adapter *padapter, - struct recv_frame *precv_frame); unsigned int OnDisassoc(struct adapter *padapter, struct recv_frame *precv_frame); unsigned int OnAuth(struct adapter *padapter,