mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-18 16:40:29 +00:00
kernel: phy: motorcomm: Fix compile
Fix compilation on starfive target. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
fc08989a32
commit
03ce5598a0
@ -0,0 +1,22 @@
|
||||
From 6f291aa7da199c6486cc229b055dcbcd5cee7a21 Mon Sep 17 00:00:00 2001
|
||||
From: Hauke Mehrtens <hauke@hauke-m.de>
|
||||
Date: Sun, 21 May 2023 22:24:56 +0200
|
||||
Subject: [PATCH] net: phy: motorcomm: Add missing include
|
||||
|
||||
Directly include linux/bitfield.h which provides FIELD_PREP.
|
||||
|
||||
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||||
---
|
||||
drivers/net/phy/motorcomm.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
--- a/drivers/net/phy/motorcomm.c
|
||||
+++ b/drivers/net/phy/motorcomm.c
|
||||
@@ -6,6 +6,7 @@
|
||||
* Author: Frank <Frank.Sae@motor-comm.com>
|
||||
*/
|
||||
|
||||
+#include <linux/bitfield.h>
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
@ -0,0 +1,22 @@
|
||||
From 6f291aa7da199c6486cc229b055dcbcd5cee7a21 Mon Sep 17 00:00:00 2001
|
||||
From: Hauke Mehrtens <hauke@hauke-m.de>
|
||||
Date: Sun, 21 May 2023 22:24:56 +0200
|
||||
Subject: [PATCH] net: phy: motorcomm: Add missing include
|
||||
|
||||
Directly include linux/bitfield.h which provides FIELD_PREP.
|
||||
|
||||
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||||
---
|
||||
drivers/net/phy/motorcomm.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
--- a/drivers/net/phy/motorcomm.c
|
||||
+++ b/drivers/net/phy/motorcomm.c
|
||||
@@ -6,6 +6,7 @@
|
||||
* Author: Frank <Frank.Sae@motor-comm.com>
|
||||
*/
|
||||
|
||||
+#include <linux/bitfield.h>
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
Loading…
x
Reference in New Issue
Block a user