From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] ARM: mmu: fix <unknown> mapping print
Date: Fri, 29 Aug 2025 15:11:42 +0200 [thread overview]
Message-ID: <20250829131142.415464-1-s.hauer@pengutronix.de> (raw)
Mask out the ARCH_MAP_FLAG_PAGEWISE bit in map_type_tostr(). Otherwise
mapping types with this bit set end up being <unknown>.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/cpu/mmu-common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/cpu/mmu-common.c b/arch/arm/cpu/mmu-common.c
index 46982b00b7..033ba01ea4 100644
--- a/arch/arm/cpu/mmu-common.c
+++ b/arch/arm/cpu/mmu-common.c
@@ -18,6 +18,8 @@
const char *map_type_tostr(maptype_t map_type)
{
+ map_type &= ~ARCH_MAP_FLAG_PAGEWISE;
+
switch (map_type) {
case ARCH_MAP_CACHED_RWX: return "RWX";
case ARCH_MAP_CACHED_RO: return "RO";
--
2.47.2
reply other threads:[~2025-08-29 16:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20250829131142.415464-1-s.hauer@pengutronix.de \
--to=s.hauer@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