Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ethan Nelson-Moore <enelsonmoore@gmail.com>
To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: Russell King <linux@armlinux.org.uk>,
	Ethan Nelson-Moore <enelsonmoore@gmail.com>
Subject: [PATCH] ARM: remove unnecessary __LINUX_ARM_ARCH__ check in <asm/cp15.h>
Date: Sun, 10 May 2026 15:50:12 -0700	[thread overview]
Message-ID: <20260510225015.15311-1-enelsonmoore@gmail.com> (raw)

__LINUX_ARM_ARCH__ is only defined to 3 on the Risc PC. This is because
its currently supported configuration uses a StrongARM ARMv4 CPU, but
its bus does not support half-word accesses, so LDRH/STRH instructions
are disabled for it. Otherwise, it is a standard ARMv4 platform.
Support for actual ARMv3 CPUs was dropped in commit 357c9c1f07d4 ("ARM:
Remove support for ARMv3 ARM610 and ARM710 CPUs"), and therefore the
check for __LINUX_ARM_ARCH__ in <asm/cp15.h> is unnecessary. Remove it.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
---
 arch/arm/include/asm/cp15.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm/include/asm/cp15.h b/arch/arm/include/asm/cp15.h
index a54230e65647..0d9f40b346e9 100644
--- a/arch/arm/include/asm/cp15.h
+++ b/arch/arm/include/asm/cp15.h
@@ -42,11 +42,7 @@
 
 #ifndef __ASSEMBLY__
 
-#if __LINUX_ARM_ARCH__ >= 4
 #define vectors_high()	(get_cr() & CR_V)
-#else
-#define vectors_high()	(0)
-#endif
 
 #ifdef CONFIG_CPU_CP15
 
-- 
2.43.0



                 reply	other threads:[~2026-05-10 22:50 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=20260510225015.15311-1-enelsonmoore@gmail.com \
    --to=enelsonmoore@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    /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