Skip to content

Commit

Permalink
wilc: fix compilation errors with linux version < 4.9
Browse files Browse the repository at this point in the history
    Tested against 3.10 and 3.18

Signed-off-by: Adham Abozaeid <[email protected]>
  • Loading branch information
Adham Abozaeid committed Jun 25, 2018
1 parent 744c4dc commit 37e3bd5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wilc/host_interface.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/etherdevice.h>

#include "wilc_wfi_netdevice.h"
#include "linux_wlan.h"

Expand Down
2 changes: 2 additions & 0 deletions wilc/linux_mon.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/etherdevice.h>

#include "wilc_wfi_cfgoperations.h"

struct wilc_wfi_radiotap_hdr {
Expand Down
4 changes: 4 additions & 0 deletions wilc/linux_wlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include <linux/firmware.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/interrupt.h>
#include <net/ip.h>
#include <linux/module.h>
#ifdef DISABLE_PWRSAVE_AND_SCAN_DURING_IP
#include <linux/inetdevice.h>
#endif /* DISABLE_PWRSAVE_AND_SCAN_DURING_IP */
Expand Down
2 changes: 2 additions & 0 deletions wilc/wilc_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

#include <linux/mmc/sdio_func.h>
#include <linux/mmc/host.h>
#include <linux/mmc/card.h>
#include <linux/of_gpio.h>
#include <linux/module.h>

#include "wilc_wfi_netdevice.h"

Expand Down
1 change: 1 addition & 0 deletions wilc/wilc_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <linux/spi/spi.h>
#include <linux/of_gpio.h>
#include <linux/module.h>

#include "wilc_wfi_netdevice.h"

Expand Down
2 changes: 2 additions & 0 deletions wilc/wilc_wfi_cfgoperations.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/etherdevice.h>

#include "wilc_wfi_cfgoperations.h"
#include "linux_wlan.h"

Expand Down

0 comments on commit 37e3bd5

Please sign in to comment.