[PATCH master 04/13] net: dsa: realtek: fix CONFIG_SANDBOX build
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Oct 14 04:39:03 PDT 2024
A number of errors due to missing headers pop up when compiling
this driver under sandbox. Fix them.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
drivers/net/realtek-dsa/realtek-mdio.c | 1 +
drivers/net/realtek-dsa/rtl8365mb.c | 2 ++
drivers/net/realtek-dsa/rtl8366rb.c | 1 +
3 files changed, 4 insertions(+)
diff --git a/drivers/net/realtek-dsa/realtek-mdio.c b/drivers/net/realtek-dsa/realtek-mdio.c
index 4fc2295b1b5f..d4c3fbba526f 100644
--- a/drivers/net/realtek-dsa/realtek-mdio.c
+++ b/drivers/net/realtek-dsa/realtek-mdio.c
@@ -21,6 +21,7 @@
#include <of_device.h>
#include <linux/regmap.h>
+#include <linux/slab.h>
#include <clock.h>
#include <linux/gpio/consumer.h>
#include <linux/printk.h>
diff --git a/drivers/net/realtek-dsa/rtl8365mb.c b/drivers/net/realtek-dsa/rtl8365mb.c
index 588998235827..5b5b7cb97682 100644
--- a/drivers/net/realtek-dsa/rtl8365mb.c
+++ b/drivers/net/realtek-dsa/rtl8365mb.c
@@ -90,12 +90,14 @@
* one of the simpler chips.
*/
+#include <linux/kernel.h>
#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
#include <linux/printk.h>
#include <linux/export.h>
+#include <linux/math.h>
#include <linux/regmap.h>
#include <net.h>
#include <linux/if_bridge.h>
diff --git a/drivers/net/realtek-dsa/rtl8366rb.c b/drivers/net/realtek-dsa/rtl8366rb.c
index 35028d319ecd..052a7e2b3a73 100644
--- a/drivers/net/realtek-dsa/rtl8366rb.c
+++ b/drivers/net/realtek-dsa/rtl8366rb.c
@@ -13,6 +13,7 @@
*/
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <net.h>
#include <linux/if_bridge.h>
#include <linux/printk.h>
--
2.39.5
More information about the barebox
mailing list