staging: wfx: remove useless header inclusions
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 5 May 2020 12:37:54 +0000 (14:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2020 11:26:42 +0000 (13:26 +0200)
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 <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200505123757.39506-13-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/data_rx.h
drivers/staging/wfx/hif_tx.h
drivers/staging/wfx/hif_tx_mib.h
drivers/staging/wfx/main.c
drivers/staging/wfx/main.h
drivers/staging/wfx/queue.h
drivers/staging/wfx/sta.h
drivers/staging/wfx/wfx.h

index 61c28bfd2a37d3ff875e9271af7c34e0f2a14213..125dbfc1f8756046f7f575ecde06f623feefc24d 100644 (file)
@@ -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);
index 038ea54e25748e5fd997f3a8e48dece199752220..826851a7e950ccc2ce962ac9755e939daeb1d7bf 100644 (file)
 #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;
 
index b72770a4ba128205544fe2883e012d25fa318c3f..bce35eb7eaa003ff48f67cffcee22daf3a823621 100644 (file)
@@ -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;
 
index 623a9fc31153ae4d4659aed6da1d47670064dc41..d3d86c8c92c88d90b455c16db5a6acf260975f72 100644 (file)
@@ -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"
index 9c9410072def782814067feb8a3a6885bbf614dd..a0f37c8ce3dfb22429e402bd2dbbb0d400a2936d 100644 (file)
 #include <linux/device.h>
 #include <linux/gpio/consumer.h>
 
-#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 */
index 1020dfde399b8c4dbe55a4cd1ff5a241258a05a2..0cbe5f4b06f2426feb5887d9179f6b63ab9d34aa 100644 (file)
@@ -11,8 +11,6 @@
 #include <linux/skbuff.h>
 #include <linux/atomic.h>
 
-#include "hif_api_cmd.h"
-
 struct wfx_dev;
 struct wfx_vif;
 
index a0e025c183413eda4ed5525586bbab4ea5390d27..c84c3749ec4f97490e8a0c7ba261ef5de4deda89 100644 (file)
@@ -10,8 +10,6 @@
 
 #include <net/mac80211.h>
 
-#include "hif_api_cmd.h"
-
 struct wfx_dev;
 struct wfx_vif;
 
index 4eb7762142fc9bc6323ae16b42d785aa6aca8fd2..09a24561f092421360e47143fdbf06f6cda46000 100644 (file)
 #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