mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] fixup! crypto: caam - skip RNG selftest when i.MX6 is in normal world
Date: Tue,  4 Nov 2025 11:00:24 +0100	[thread overview]
Message-ID: <20251104100024.2983523-1-a.fatoum@pengutronix.de> (raw)

crypto: caam - fix COMPILE_TEST breakage

<mach/imx/*.h> doesn't exist when we compile allyesconfig for sandbox,
so stub out the macros used from it, so CAAM can continue to build
independently of selected architecture.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/crypto/caam/rng_self_test.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/crypto/caam/rng_self_test.c b/drivers/crypto/caam/rng_self_test.c
index a42d9cad1639..f008908b903e 100644
--- a/drivers/crypto/caam/rng_self_test.c
+++ b/drivers/crypto/caam/rng_self_test.c
@@ -47,8 +47,14 @@
 #include <dma.h>
 #include <common.h>
 #include <linux/kernel.h>
+
+#ifdef CONFIG_ARCH_IMX6
 #include <mach/imx/generic.h>
 #include <mach/imx/imx6.h>
+#else
+#define cpu_is_mx6()			false
+#define imx6_cannot_write_l2x0()	false
+#endif
 
 #include "error.h"
 #include "regs.h"
-- 
2.47.3




             reply	other threads:[~2025-11-04 10:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-04 10:00 Ahmad Fatoum [this message]
2025-11-04 10:13 ` 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=20251104100024.2983523-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