Skip to content

Commit 37e3bd5

Browse files
author
Adham Abozaeid
committed
wilc: fix compilation errors with linux version < 4.9
Tested against 3.10 and 3.18 Signed-off-by: Adham Abozaeid <[email protected]>
1 parent 744c4dc commit 37e3bd5

File tree

6 files changed

+13
-0
lines changed

6 files changed

+13
-0
lines changed

wilc/host_interface.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
2+
#include <linux/etherdevice.h>
3+
24
#include "wilc_wfi_netdevice.h"
35
#include "linux_wlan.h"
46

wilc/linux_mon.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
2+
#include <linux/etherdevice.h>
3+
24
#include "wilc_wfi_cfgoperations.h"
35

46
struct wilc_wfi_radiotap_hdr {

wilc/linux_wlan.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#include <linux/firmware.h>
66
#include <linux/init.h>
77
#include <linux/netdevice.h>
8+
#include <linux/etherdevice.h>
9+
#include <linux/interrupt.h>
10+
#include <net/ip.h>
11+
#include <linux/module.h>
812
#ifdef DISABLE_PWRSAVE_AND_SCAN_DURING_IP
913
#include <linux/inetdevice.h>
1014
#endif /* DISABLE_PWRSAVE_AND_SCAN_DURING_IP */

wilc/wilc_sdio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
#include <linux/mmc/sdio_func.h>
99
#include <linux/mmc/host.h>
10+
#include <linux/mmc/card.h>
1011
#include <linux/of_gpio.h>
12+
#include <linux/module.h>
1113

1214
#include "wilc_wfi_netdevice.h"
1315

wilc/wilc_spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <linux/spi/spi.h>
99
#include <linux/of_gpio.h>
10+
#include <linux/module.h>
1011

1112
#include "wilc_wfi_netdevice.h"
1213

wilc/wilc_wfi_cfgoperations.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
2+
#include <linux/etherdevice.h>
3+
24
#include "wilc_wfi_cfgoperations.h"
35
#include "linux_wlan.h"
46

0 commit comments

Comments
 (0)