* [PATCH master] net: fsl_enetc: fix missing dmb() symbols on non-ARM
@ 2025-12-11 19:33 Ahmad Fatoum
2025-12-15 7:30 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-12-11 19:33 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
The driver uses dmb(), which we only define on ARM systems, add a stub
to allow the driver to build.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/net/fsl_enetc.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c
index df5a9a4c0bf8..174c2ed0451d 100644
--- a/drivers/net/fsl_enetc.c
+++ b/drivers/net/fsl_enetc.c
@@ -10,11 +10,17 @@
#include <linux/pci.h>
#include <linux/io.h>
#include <linux/mdio.h>
-#include <asm/system.h>
#include <of_net.h>
#include <asm/unaligned.h>
#include <io-64-nonatomic-lo-hi.h>
+#ifdef CONFIG_ARM
+#include <asm/system.h>
+#else
+#include <linux/bug.h>
+#define dmb() BUG()
+#endif
+
#include "fsl_enetc.h"
/* MDIO wrappers, we're using these to drive internal MDIO to get to serdes */
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH master] net: fsl_enetc: fix missing dmb() symbols on non-ARM
2025-12-11 19:33 [PATCH master] net: fsl_enetc: fix missing dmb() symbols on non-ARM Ahmad Fatoum
@ 2025-12-15 7:30 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-12-15 7:30 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Thu, 11 Dec 2025 20:33:21 +0100, Ahmad Fatoum wrote:
> The driver uses dmb(), which we only define on ARM systems, add a stub
> to allow the driver to build.
>
>
Applied, thanks!
[1/1] net: fsl_enetc: fix missing dmb() symbols on non-ARM
https://git.pengutronix.de/cgit/barebox/commit/?id=6a82b6ce0836 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-15 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-11 19:33 [PATCH master] net: fsl_enetc: fix missing dmb() symbols on non-ARM Ahmad Fatoum
2025-12-15 7:30 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox