Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1435144pxy; Fri, 23 Apr 2021 08:02:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1vd3uwsC86cVtb5gei2AFwFJtiPIBEpJrfhTXMSXZUgP/Izw1IPCMNpnOvd5oUPs8L4ph X-Received: by 2002:a17:907:988c:: with SMTP id ja12mr4806997ejc.41.1619190120092; Fri, 23 Apr 2021 08:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619190120; cv=none; d=google.com; s=arc-20160816; b=HArUziA1hcxBY5CkTjC0UD4sqqBmd3xgcBm297NHd8Kwre81q04Ldvuz7b1ji1Sz4H GQ9yJt9PAR3uY4YCoFxetHTusLAyoITVs6qRB1KNlG5/Dj7WrlRI1Cd8JB7WVFYWNHgj Z1FfrXQBScQzcybT5LwsUumQ0Z+OGQ5HwKaA69wVZ1gSxwVV2zfauUOqBwNFfyAnbJ1c 3jIT6CADVySJy0CJUTnMICsCt4N/04bJrzafCCwPeFJgtlHyvZaoGyDUs2RjxbFyJRxT UDQZFFIxpjRjCW2Er1+lrvA6y5b9eOdKAAB7CAOgAvciPOYBhhfDVuTnhuRgH4Yndnb3 hXeQ== 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 :dkim-signature; bh=91fZeTranZX1H5Z/+RUWnPue6CJoyhVbwkd9ov6Mo+w=; b=bAy/IuXQmZZluWXFBbw4P3UBvHEssuxlxZi4cvSOrhs7iuqFzQjqN+F/QSrMKz+WTQ ozLCkxrBzLuSqT/r0SgwBg0HCtCMxXbIfybBw+XUb2zQmQ0KqMxoMOt7V9oQAgjbJFEL UE8lImnDlgMAGQlm0C2eH0HPBmf/O8xOGcPxEmFw2aB/IKjt0CyOdTkz/VVliN0w7nq8 TB7CMIjh86mf4v8uaS+iui4FgTljkq0yrF03akRWGSup/7I6zgfkSL9JDaWZUv60RnAr EQ2cCD6pXitdKBuIWPb35lRDrsHUxd+K0xn98p+WBBul/NMZoq8svUKfk1dJ0xl4bV4l 2pWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C1QiuZJp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si5427019ejf.345.2021.04.23.08.01.35; Fri, 23 Apr 2021 08:02:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C1QiuZJp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243074AbhDWPA2 (ORCPT + 99 others); Fri, 23 Apr 2021 11:00:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243061AbhDWO74 (ORCPT ); Fri, 23 Apr 2021 10:59:56 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 782C4C061346 for ; Fri, 23 Apr 2021 07:59:14 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id h4so39664025wrt.12 for ; Fri, 23 Apr 2021 07:59:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=91fZeTranZX1H5Z/+RUWnPue6CJoyhVbwkd9ov6Mo+w=; b=C1QiuZJpNteY9tZZCizOWRpMwd80IY+0+Z6NNmx097Rbuyevz/HsVPYomD0nj1yGGV xRUM7KwMwk8DXll5y/IkQMrEu2cWhw9R7KyD2SbvOcK6IbCJt8I5D0Xr+OOCGtHALH/f /wJgs1FYvyIzO8DG7lelpdsAfL+aGjpyXqtlsxQMuynLzda1K2KU+0Lmwy1M5USbYb32 qTMS5hfhOJKerkQJVxi5Q08zRxjrNxSpVyWXX9ddagMwOVnBxFSEZ4AGABUFwkKDCRhi 2IGWptmluPp/5veZzU3k3rXfxCOISGA0MdWzI301XGPxUzd/DOJ9X7qx2Sx29UXEhycA D0Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=91fZeTranZX1H5Z/+RUWnPue6CJoyhVbwkd9ov6Mo+w=; b=qk7ZJ9u4sbzoB1hluuVTBjdP6Q4+2crXllPxZL9OhCLaiRERo9FCMsYNvC0Pjl+PNg fhrYjtJB+BGJYFL9ujUdjNJp2OGW2gOAs109mkQURwt14y5G2cLYGtfnQeCCmj5Mypig F7v0TH+F9Of7ObHrilseJm6zakVw+Jx9IKZfMxnA4LgTekE2uBYiGmEd38pIVFox6Ki1 uXaCs6b5lfADUM910uvlzC3tZWgbgiz4JNPaUvKOWwbQ/02fuD2qezk/cMiPSJbR+Rmp kDjqeqCpKT/3+oHmHNo3+tH3sCinD1+9XQsWtEl1/I4JfKgFuMQy5AyEscf7kxD8RZLa wGtw== X-Gm-Message-State: AOAM533/KjlqeEcWOnhBg6Xtjf+WW71SoRerK2MXeMGdIFwt85/PaBEB gpmdBpYUShl91YsygSGIHX/PVZhxxQE= X-Received: by 2002:a5d:4bc9:: with SMTP id l9mr5475396wrt.242.1619189953033; Fri, 23 Apr 2021 07:59:13 -0700 (PDT) Received: from agape ([5.171.72.99]) by smtp.gmail.com with ESMTPSA id z14sm11147916wrt.54.2021.04.23.07.59.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Apr 2021 07:59:12 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 19/49] staging: rtl8723bs: move static array definition from header to .c file Date: Fri, 23 Apr 2021 16:58:10 +0200 Message-Id: <497353741dc5b9045d62218fed39f51c25859f45.1619189489.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org move static array definition from header to .c file. This prepare removal of a conditional compile block _RTW_MLME_EXT_C_. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 30 +++++++++++++++++ .../staging/rtl8723bs/include/rtw_mlme_ext.h | 32 ------------------- 2 files changed, 30 insertions(+), 32 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index 9031cf7657ae..1ff2b3a28bab 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -5997,6 +5997,36 @@ u8 set_tx_beacon_cmd(struct adapter *padapter) return res; } +static struct fwevent wlanevents[] = { + {0, rtw_dummy_event_callback}, /*0*/ + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, &rtw_survey_event_callback}, /*8*/ + {sizeof(struct surveydone_event), &rtw_surveydone_event_callback}, /*9*/ + + {0, &rtw_joinbss_event_callback}, /*10*/ + {sizeof(struct stassoc_event), &rtw_stassoc_event_callback}, + {sizeof(struct stadel_event), &rtw_stadel_event_callback}, + {0, &rtw_atimdone_event_callback}, + {0, rtw_dummy_event_callback}, + {0, NULL}, /*15*/ + {0, NULL}, + {0, NULL}, + {0, NULL}, + {0, rtw_fwdbg_event_callback}, + {0, NULL}, /*20*/ + {0, NULL}, + {0, NULL}, + {0, &rtw_cpwm_event_callback}, + {0, NULL}, + {0, &rtw_wmm_event_callback}, + +}; u8 mlme_evt_hdl(struct adapter *padapter, unsigned char *pbuf) { diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h index 472818c5fd83..0248b91b4525 100644 --- a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h @@ -805,38 +805,6 @@ enum { #ifdef _RTW_MLME_EXT_C_ -static struct fwevent wlanevents[] = -{ - {0, rtw_dummy_event_callback}, /*0*/ - {0, NULL}, - {0, NULL}, - {0, NULL}, - {0, NULL}, - {0, NULL}, - {0, NULL}, - {0, NULL}, - {0, &rtw_survey_event_callback}, /*8*/ - {sizeof(struct surveydone_event), &rtw_surveydone_event_callback}, /*9*/ - - {0, &rtw_joinbss_event_callback}, /*10*/ - {sizeof(struct stassoc_event), &rtw_stassoc_event_callback}, - {sizeof(struct stadel_event), &rtw_stadel_event_callback}, - {0, &rtw_atimdone_event_callback}, - {0, rtw_dummy_event_callback}, - {0, NULL}, /*15*/ - {0, NULL}, - {0, NULL}, - {0, NULL}, - {0, rtw_fwdbg_event_callback}, - {0, NULL}, /*20*/ - {0, NULL}, - {0, NULL}, - {0, &rtw_cpwm_event_callback}, - {0, NULL}, - {0, &rtw_wmm_event_callback}, - -}; - #endif/* _RTL8192C_CMD_C_ */ #endif -- 2.20.1