From 525f469f7f9ce657b35dae2a9f555be1e71e16a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Pouiller?= Date: Tue, 5 May 2020 14:37:54 +0200 Subject: [PATCH] staging: wfx: remove useless header inclusions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In order to keep the compilation times reasonable, we try to only include the necessary headers (especially header included from other headers). This patch clean up unnecessary headers inclusions. Signed-off-by: Jérôme Pouiller Link: https://lore.kernel.org/r/20200505123757.39506-13-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wfx/data_rx.h | 3 +-- drivers/staging/wfx/hif_tx.h | 3 +-- drivers/staging/wfx/hif_tx_mib.h | 2 -- drivers/staging/wfx/main.c | 1 + drivers/staging/wfx/main.h | 2 +- drivers/staging/wfx/queue.h | 2 -- drivers/staging/wfx/sta.h | 2 -- drivers/staging/wfx/wfx.h | 3 --- 8 files changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/staging/wfx/data_rx.h b/drivers/staging/wfx/data_rx.h index 61c28bfd2a37d..125dbfc1f8756 100644 --- a/drivers/staging/wfx/data_rx.h +++ b/drivers/staging/wfx/data_rx.h @@ -8,10 +8,9 @@ #ifndef WFX_DATA_RX_H #define WFX_DATA_RX_H -#include "hif_api_cmd.h" - struct wfx_vif; struct sk_buff; +struct hif_ind_rx; void wfx_rx_cb(struct wfx_vif *wvif, const struct hif_ind_rx *arg, struct sk_buff *skb); diff --git a/drivers/staging/wfx/hif_tx.h b/drivers/staging/wfx/hif_tx.h index 038ea54e25748..826851a7e950c 100644 --- a/drivers/staging/wfx/hif_tx.h +++ b/drivers/staging/wfx/hif_tx.h @@ -10,12 +10,11 @@ #ifndef WFX_HIF_TX_H #define WFX_HIF_TX_H -#include "hif_api_cmd.h" - struct ieee80211_channel; struct ieee80211_bss_conf; struct ieee80211_tx_queue_params; struct cfg80211_scan_request; +struct hif_req_add_key; struct wfx_dev; struct wfx_vif; diff --git a/drivers/staging/wfx/hif_tx_mib.h b/drivers/staging/wfx/hif_tx_mib.h index b72770a4ba128..bce35eb7eaa00 100644 --- a/drivers/staging/wfx/hif_tx_mib.h +++ b/drivers/staging/wfx/hif_tx_mib.h @@ -9,8 +9,6 @@ #ifndef WFX_HIF_TX_MIB_H #define WFX_HIF_TX_MIB_H -#include "hif_api_mib.h" - struct wfx_vif; struct sk_buff; diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index 623a9fc31153a..d3d86c8c92c88 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -28,6 +28,7 @@ #include "bh.h" #include "sta.h" #include "key.h" +#include "scan.h" #include "debug.h" #include "data_tx.h" #include "secure_link.h" diff --git a/drivers/staging/wfx/main.h b/drivers/staging/wfx/main.h index 9c9410072def7..a0f37c8ce3dfb 100644 --- a/drivers/staging/wfx/main.h +++ b/drivers/staging/wfx/main.h @@ -13,10 +13,10 @@ #include #include -#include "bus.h" #include "hif_api_general.h" struct wfx_dev; +struct hwbus_ops; struct wfx_platform_data { /* Keyset and ".sec" extention will appended to this string */ diff --git a/drivers/staging/wfx/queue.h b/drivers/staging/wfx/queue.h index 1020dfde399b8..0cbe5f4b06f24 100644 --- a/drivers/staging/wfx/queue.h +++ b/drivers/staging/wfx/queue.h @@ -11,8 +11,6 @@ #include #include -#include "hif_api_cmd.h" - struct wfx_dev; struct wfx_vif; diff --git a/drivers/staging/wfx/sta.h b/drivers/staging/wfx/sta.h index a0e025c183413..c84c3749ec4f9 100644 --- a/drivers/staging/wfx/sta.h +++ b/drivers/staging/wfx/sta.h @@ -10,8 +10,6 @@ #include -#include "hif_api_cmd.h" - struct wfx_dev; struct wfx_vif; diff --git a/drivers/staging/wfx/wfx.h b/drivers/staging/wfx/wfx.h index 4eb7762142fc9..09a24561f0924 100644 --- a/drivers/staging/wfx/wfx.h +++ b/drivers/staging/wfx/wfx.h @@ -21,10 +21,7 @@ #include "main.h" #include "queue.h" #include "secure_link.h" -#include "sta.h" -#include "scan.h" #include "hif_tx.h" -#include "hif_api_general.h" #define USEC_PER_TXOP 32 // see struct ieee80211_tx_queue_params #define USEC_PER_TU 1024 -- 2.30.2