From 912ff0dcee7ddb6de0842545ec8d51285c0d4218 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 24 Jun 2019 23:07:13 +0200 Subject: patches: rtw88: Add missing include on kernel 3.18 On kernel 3.18 linux/module.h is not indirectly included in this driver. On some other kernel version linux/interrupt.h is not indirectly included, but needed. This fixes some compile problems in the rtw88 driver. Signed-off-by: Hauke Mehrtens --- patches/0013-fix-makefile-includes/rtw88.patch | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 patches/0013-fix-makefile-includes/rtw88.patch diff --git a/patches/0013-fix-makefile-includes/rtw88.patch b/patches/0013-fix-makefile-includes/rtw88.patch new file mode 100644 index 00000000..454c9f89 --- /dev/null +++ b/patches/0013-fix-makefile-includes/rtw88.patch @@ -0,0 +1,40 @@ +--- a/drivers/net/wireless/realtek/rtw88/main.c ++++ b/drivers/net/wireless/realtek/rtw88/main.c +@@ -12,6 +12,7 @@ + #include "reg.h" + #include "efuse.h" + #include "debug.h" ++#include + + static bool rtw_fw_support_lps; + unsigned int rtw_debug_mask; +--- a/drivers/net/wireless/realtek/rtw88/rtw8822b.c ++++ b/drivers/net/wireless/realtek/rtw88/rtw8822b.c +@@ -12,6 +12,7 @@ + #include "mac.h" + #include "reg.h" + #include "debug.h" ++#include + + static void rtw8822b_config_trx_mode(struct rtw_dev *rtwdev, u8 tx_path, + u8 rx_path, bool is_tx2_path); +--- a/drivers/net/wireless/realtek/rtw88/rtw8822c.c ++++ b/drivers/net/wireless/realtek/rtw88/rtw8822c.c +@@ -12,6 +12,7 @@ + #include "mac.h" + #include "reg.h" + #include "debug.h" ++#include + + static void rtw8822c_config_trx_mode(struct rtw_dev *rtwdev, u8 tx_path, + u8 rx_path, bool is_tx2_path); +--- a/drivers/net/wireless/realtek/rtw88/pci.c ++++ b/drivers/net/wireless/realtek/rtw88/pci.c +@@ -9,6 +9,7 @@ + #include "tx.h" + #include "rx.h" + #include "debug.h" ++#include + + static u32 rtw_pci_tx_queue_idx_addr[] = { + [RTW_TX_QUEUE_BK] = RTK_PCI_TXBD_IDX_BKQ, -- cgit v1.2.3