Skip to content

Commit 16d7586

Browse files
committed
Revert "staging: wfx: remove unused included header files"
This reverts commit 314fd52. It turns .h files into non-stand-alone when building, which might cause problems in the long-run. Reported-by: Jérôme Pouiller <[email protected]> Cc: Muhammad Usama Anjum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 74b6b20 commit 16d7586

27 files changed

+106
-0
lines changed

drivers/staging/wfx/bh.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Copyright (c) 2017-2020, Silicon Laboratories, Inc.
66
* Copyright (c) 2010, ST-Ericsson
77
*/
8+
#include <linux/gpio/consumer.h>
89
#include <net/mac80211.h>
910

1011
#include "bh.h"

drivers/staging/wfx/bh.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
#ifndef WFX_BH_H
99
#define WFX_BH_H
1010

11+
#include <linux/atomic.h>
12+
#include <linux/wait.h>
13+
#include <linux/workqueue.h>
14+
1115
struct wfx_dev;
1216

1317
struct wfx_hif {

drivers/staging/wfx/bus.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
#ifndef WFX_BUS_H
99
#define WFX_BUS_H
1010

11+
#include <linux/mmc/sdio_func.h>
12+
#include <linux/spi/spi.h>
13+
1114
#define WFX_REG_CONFIG 0x0
1215
#define WFX_REG_CONTROL 0x1
1316
#define WFX_REG_IN_OUT_QUEUE 0x2

drivers/staging/wfx/bus_sdio.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@
55
* Copyright (c) 2017-2020, Silicon Laboratories, Inc.
66
* Copyright (c) 2010, ST-Ericsson
77
*/
8+
#include <linux/module.h>
89
#include <linux/mmc/sdio.h>
910
#include <linux/mmc/sdio_func.h>
1011
#include <linux/mmc/card.h>
12+
#include <linux/interrupt.h>
1113
#include <linux/of_irq.h>
14+
#include <linux/irq.h>
1215

1316
#include "bus.h"
1417
#include "wfx.h"
18+
#include "hwio.h"
19+
#include "main.h"
20+
#include "bh.h"
1521

1622
static const struct wfx_platform_data wfx_sdio_pdata = {
1723
.file_fw = "wfm_wf200",

drivers/staging/wfx/bus_spi.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@
66
* Copyright (c) 2011, Sagrad Inc.
77
* Copyright (c) 2010, ST-Ericsson
88
*/
9+
#include <linux/module.h>
10+
#include <linux/delay.h>
11+
#include <linux/gpio/consumer.h>
912
#include <linux/spi/spi.h>
13+
#include <linux/interrupt.h>
1014
#include <linux/irq.h>
1115
#include <linux/of.h>
1216

1317
#include "bus.h"
1418
#include "wfx.h"
19+
#include "hwio.h"
20+
#include "main.h"
21+
#include "bh.h"
1522

1623
#define SET_WRITE 0x7FFF /* usage: and operation */
1724
#define SET_READ 0x8000 /* usage: or operation */

drivers/staging/wfx/data_rx.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
* Copyright (c) 2017-2020, Silicon Laboratories, Inc.
66
* Copyright (c) 2010, ST-Ericsson
77
*/
8+
#include <linux/etherdevice.h>
9+
#include <net/mac80211.h>
10+
811
#include "data_rx.h"
912
#include "wfx.h"
13+
#include "bh.h"
14+
#include "sta.h"
1015

1116
static void wfx_rx_handle_ba(struct wfx_vif *wvif, struct ieee80211_mgmt *mgmt)
1217
{

drivers/staging/wfx/data_tx.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@
66
* Copyright (c) 2010, ST-Ericsson
77
*/
88
#include <net/mac80211.h>
9+
#include <linux/etherdevice.h>
910

11+
#include "data_tx.h"
1012
#include "wfx.h"
13+
#include "bh.h"
1114
#include "sta.h"
15+
#include "queue.h"
16+
#include "debug.h"
1217
#include "traces.h"
1318
#include "hif_tx_mib.h"
1419

drivers/staging/wfx/data_tx.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
#ifndef WFX_DATA_TX_H
99
#define WFX_DATA_TX_H
1010

11+
#include <linux/list.h>
12+
#include <net/mac80211.h>
13+
1114
#include "hif_api_cmd.h"
1215
#include "hif_api_mib.h"
1316

drivers/staging/wfx/debug.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@
55
* Copyright (c) 2017-2020, Silicon Laboratories, Inc.
66
* Copyright (c) 2010, ST-Ericsson
77
*/
8+
#include <linux/debugfs.h>
9+
#include <linux/seq_file.h>
10+
#include <linux/crc32.h>
11+
812
#include "debug.h"
913
#include "wfx.h"
1014
#include "sta.h"
15+
#include "main.h"
16+
#include "hif_tx.h"
1117
#include "hif_tx_mib.h"
1218

1319
#define CREATE_TRACE_POINTS

drivers/staging/wfx/fwio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* Copyright (c) 2010, ST-Ericsson
77
*/
88
#include <linux/firmware.h>
9+
#include <linux/slab.h>
10+
#include <linux/mm.h>
911
#include <linux/bitfield.h>
1012

1113
#include "fwio.h"

0 commit comments

Comments
 (0)