diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2021-10-05 22:42:57 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-10-18 23:01:19 +0200 |
commit | 9bb54ec000d6b343c89a998fd25dddcaf9b5af9e (patch) | |
tree | aef341f252407fc3806b06891ca7b70ceac06aeb | |
parent | 5802ef952338c9ac6adf20bdf2a62e2fa7acd83d (diff) | |
download | backports-9bb54ec000d6b343c89a998fd25dddcaf9b5af9e.tar.gz |
patches: include linux/modules.h in mt76/mt76_connac_mcu.c
The mt76/mt76_connac_mcu.c file uses MODULE_AUTHOR and MODULE_LICENSE,
include linux/modules.h explicitly for older kernel versions.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | patches/0013-fix-makefile-includes/mt76.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/patches/0013-fix-makefile-includes/mt76.patch b/patches/0013-fix-makefile-includes/mt76.patch index 81ee4944..7c5f0d45 100644 --- a/patches/0013-fix-makefile-includes/mt76.patch +++ b/patches/0013-fix-makefile-includes/mt76.patch @@ -12,6 +12,16 @@ linux/kthread.h include needed against kernel 4.19. #include "mt7615.h" #include "mcu.h" #include "mac.h" +--- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c ++++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +@@ -2,6 +2,7 @@ + /* Copyright (C) 2020 MediaTek Inc. */ + + #include "mt76_connac_mcu.h" ++#include <linux/module.h> + + int mt76_connac_mcu_start_firmware(struct mt76_dev *dev, u32 addr, u32 option) + { --- a/drivers/net/wireless/mediatek/mt76/mt7615/sdio.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/sdio.c @@ -9,6 +9,7 @@ |