public inbox for linux-alpha@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] alpha: Select HAVE_ARCH_COMPILER_H
@ 2026-04-03 15:03 Matt Turner
  0 siblings, 0 replies; only message in thread
From: Matt Turner @ 2026-04-03 15:03 UTC (permalink / raw)
  To: Magnus Lindholm; +Cc: linux-alpha, linux-kernel, Matt Turner

Alpha already provides asm/compiler.h (wrapping uapi/asm/compiler.h)
which defines architecture-specific compiler intrinsics like
__kernel_cmpbge, __kernel_cttz, __kernel_ctlz, and __kernel_ctpop.

Selecting HAVE_ARCH_COMPILER_H causes linux/compiler_types.h to include
asm/compiler.h, making these definitions available consistently.

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 arch/alpha/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git ./arch/alpha/Kconfig ./arch/alpha/Kconfig
index 57c91ed67b71..d870529fa251 100644
--- ./arch/alpha/Kconfig
+++ ./arch/alpha/Kconfig
@@ -17,6 +17,7 @@ config ALPHA
 	select PCI_DOMAINS if PCI
 	select PCI_SYSCALL if PCI
 	select HAVE_ARCH_TRACEHOOK
+	select HAVE_ARCH_COMPILER_H
 	select HAVE_ASM_MODVERSIONS
 	select TRACE_IRQFLAGS_SUPPORT
 	select HAVE_PAGE_SIZE_8KB
-- 
2.52.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-03 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-03 15:03 [PATCH] alpha: Select HAVE_ARCH_COMPILER_H Matt Turner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox