From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH master] net: fsl_enetc: fix missing dmb() symbols on non-ARM
Date: Thu, 11 Dec 2025 20:33:21 +0100 [thread overview]
Message-ID: <20251211193322.3932207-1-a.fatoum@pengutronix.de> (raw)
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
next reply other threads:[~2025-12-11 19:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-11 19:33 Ahmad Fatoum [this message]
2025-12-15 7:30 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251211193322.3932207-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox