* [PATCH v2] sh: mm: Remove checks for nonexistent CONFIG_CPU_SUBTYPE_ST40
@ 2026-06-15 22:40 Ethan Nelson-Moore
0 siblings, 0 replies; only message in thread
From: Ethan Nelson-Moore @ 2026-06-15 22:40 UTC (permalink / raw)
To: Geert Uytterhoeven, Ethan Nelson-Moore, linux-sh
Cc: Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz
The CONFIG_CPU_SUBTYPE_ST40 option was removed in commit f96691872439
("sh: Kill off the remaining ST40 cruft."), but a check for it was
added later in commit d02b08f6e8b184ff ("sh: Clean up places that make
29-bit physical assumptions."). Remove this dead code. Also remove the
definition of and references to the MMUCR_SE bit mask, because it is
defined as zero on all CPUs other than ST40.
Discovered while searching for CONFIG_* symbols referenced in code but
not defined in any Kconfig file.
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
---
Changes in v2: Correctly indicate that the check was added after ST40
support was removed (thanks Geert)
arch/sh/include/cpu-sh4/cpu/mmu_context.h | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/sh/include/cpu-sh4/cpu/mmu_context.h b/arch/sh/include/cpu-sh4/cpu/mmu_context.h
index 421b56d5c595..4a6148e1ea84 100644
--- a/arch/sh/include/cpu-sh4/cpu/mmu_context.h
+++ b/arch/sh/include/cpu-sh4/cpu/mmu_context.h
@@ -43,12 +43,6 @@
#define MMUCR_URC 0x0000FC00
#define MMUCR_URC_SHIFT 10
-#if defined(CONFIG_32BIT) && defined(CONFIG_CPU_SUBTYPE_ST40)
-#define MMUCR_SE (1 << 4)
-#else
-#define MMUCR_SE (0)
-#endif
-
#ifdef CONFIG_CPU_HAS_PTEAEX
#define MMUCR_AEX (1 << 6)
#else
@@ -69,7 +63,7 @@
#define MMU_NTLB_ENTRIES 64
#define MMU_CONTROL_INIT (MMUCR_AT | MMUCR_TI | MMUCR_SQMD | \
- MMUCR_ME | MMUCR_SE | MMUCR_AEX)
+ MMUCR_ME | MMUCR_AEX)
#define TRA 0xff000020
#define EXPEVT 0xff000024
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-15 22:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15 22:40 [PATCH v2] sh: mm: Remove checks for nonexistent CONFIG_CPU_SUBTYPE_ST40 Ethan Nelson-Moore
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.