summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-06-24 23:07:13 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2019-07-06 11:47:22 +0200
commit912ff0dcee7ddb6de0842545ec8d51285c0d4218 (patch)
tree015f97109821fb617798dbd38d45295d835ab293
parent7744bfe0ece2be4da02e67c7789a333bbd1b2f88 (diff)
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 <hauke@hauke-m.de>
-rw-r--r--patches/0013-fix-makefile-includes/rtw88.patch40
1 files changed, 40 insertions, 0 deletions
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 <linux/module.h>
+
+ 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 <linux/module.h>
+
+ 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 <linux/module.h>
+
+ 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 <linux/interrupt.h>
+
+ static u32 rtw_pci_tx_queue_idx_addr[] = {
+ [RTW_TX_QUEUE_BK] = RTK_PCI_TXBD_IDX_BKQ,