All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mt76: Add missing include of linux/module.h
@ 2018-12-02 12:06 Hauke Mehrtens
  2018-12-28 12:16 ` Felix Fietkau
  0 siblings, 1 reply; 2+ messages in thread
From: Hauke Mehrtens @ 2018-12-02 12:06 UTC (permalink / raw)
  To: nbd; +Cc: kvalo, lorenzo.bianconi, linux-wireless, Hauke Mehrtens

MODULE_FIRMWARE() is used in usb_mcu.c and provided by linux/module.h,
but this header file is not directly included. This causes problems in
backports with some kernel versions.

Add the missing include.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
index a9f14d5149d1..b2b3fd0db4bb 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
@@ -15,6 +15,7 @@
  */
 #include <linux/kernel.h>
 #include <linux/firmware.h>
+#include <linux/module.h>
 
 #include "mt76x0.h"
 #include "mcu.h"
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mt76: Add missing include of linux/module.h
  2018-12-02 12:06 [PATCH] mt76: Add missing include of linux/module.h Hauke Mehrtens
@ 2018-12-28 12:16 ` Felix Fietkau
  0 siblings, 0 replies; 2+ messages in thread
From: Felix Fietkau @ 2018-12-28 12:16 UTC (permalink / raw)
  To: Hauke Mehrtens; +Cc: kvalo, lorenzo.bianconi, linux-wireless

On 2018-12-02 13:06, Hauke Mehrtens wrote:
> MODULE_FIRMWARE() is used in usb_mcu.c and provided by linux/module.h,
> but this header file is not directly included. This causes problems in
> backports with some kernel versions.
> 
> Add the missing include.
> 
> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Applied, thanks.

- Felix

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-28 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-02 12:06 [PATCH] mt76: Add missing include of linux/module.h Hauke Mehrtens
2018-12-28 12:16 ` Felix Fietkau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.