Building the driver for RISC-V instead of ARM, shows that the headers of some symbols depended on were included indirectly before. Fix this to enable RISC-V build. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- drivers/net/realtek-dsa/realtek-mdio.c | 1 + drivers/net/realtek-dsa/realtek-smi.c | 1 + drivers/net/realtek-dsa/rtl8365mb.c | 2 ++ drivers/net/realtek-dsa/rtl8366rb.c | 2 ++ drivers/net/realtek-dsa/tag_rtl4_a.c | 1 + drivers/net/realtek-dsa/tag_rtl8_4.c | 1 + 6 files changed, 8 insertions(+) diff --git a/drivers/net/realtek-dsa/realtek-mdio.c b/drivers/net/realtek-dsa/realtek-mdio.c index 8b32c3cf539e..579eefebe233 100644 --- a/drivers/net/realtek-dsa/realtek-mdio.c +++ b/drivers/net/realtek-dsa/realtek-mdio.c @@ -23,6 +23,7 @@ #include <regmap.h> #include <clock.h> #include <gpiod.h> +#include <linux/printk.h> #include <linux/mdio.h> #include "realtek.h" diff --git a/drivers/net/realtek-dsa/realtek-smi.c b/drivers/net/realtek-dsa/realtek-smi.c index 83d197dcdfcd..a12cb7ffd4be 100644 --- a/drivers/net/realtek-dsa/realtek-smi.c +++ b/drivers/net/realtek-dsa/realtek-smi.c @@ -31,6 +31,7 @@ #include <of.h> #include <of_device.h> #include <linux/mdio.h> +#include <linux/printk.h> #include <clock.h> #include <gpiod.h> #include <driver.h> diff --git a/drivers/net/realtek-dsa/rtl8365mb.c b/drivers/net/realtek-dsa/rtl8365mb.c index 1f11ed4ed4bc..d8e8ac714deb 100644 --- a/drivers/net/realtek-dsa/rtl8365mb.c +++ b/drivers/net/realtek-dsa/rtl8365mb.c @@ -94,6 +94,8 @@ #include <linux/bitops.h> #include <linux/mutex.h> #include <linux/spinlock.h> +#include <linux/printk.h> +#include <linux/export.h> #include <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 67dcb7fb704f..5449b9481cf7 100644 --- a/drivers/net/realtek-dsa/rtl8366rb.c +++ b/drivers/net/realtek-dsa/rtl8366rb.c @@ -15,6 +15,8 @@ #include <linux/bitops.h> #include <net.h> #include <linux/if_bridge.h> +#include <linux/printk.h> +#include <linux/export.h> #include <regmap.h> #include "realtek.h" diff --git a/drivers/net/realtek-dsa/tag_rtl4_a.c b/drivers/net/realtek-dsa/tag_rtl4_a.c index dabd4ccba2d9..30c6a712d9bf 100644 --- a/drivers/net/realtek-dsa/tag_rtl4_a.c +++ b/drivers/net/realtek-dsa/tag_rtl4_a.c @@ -16,6 +16,7 @@ */ #include <net.h> +#include <linux/printk.h> #include "realtek.h" #include "dsa_priv.h" diff --git a/drivers/net/realtek-dsa/tag_rtl8_4.c b/drivers/net/realtek-dsa/tag_rtl8_4.c index a6762fc4e90d..80e977a65d4d 100644 --- a/drivers/net/realtek-dsa/tag_rtl8_4.c +++ b/drivers/net/realtek-dsa/tag_rtl8_4.c @@ -74,6 +74,7 @@ */ #include <linux/bitfield.h> +#include <linux/printk.h> #include <net.h> #include "realtek.h" -- 2.39.2