[PATCH v1 03/48] arm64: cputype: Silence -Wshorten-64-to-32 warnings

Ian Rogers
2025-04-01T18:24:43Z

tools/arch/arm64/include/asm/cputype.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/arch/arm64/include/asm/cputype.h b/tools/arch/arm64/include/asm/cputype.h
index 488f8e751349..d7289b9d2758 100644
--- a/tools/arch/arm64/include/asm/cputype.h
+++ b/tools/arch/arm64/include/asm/cputype.h
@@ -227,7 +227,7 @@

#include <asm/sysreg.h>

-#define read_cpuid(reg) read_sysreg_s(SYS_ ## reg)
+#define read_cpuid(reg) ((u32)read_sysreg_s(SYS_ ## reg))

/*
* Represent a range of MIDR values for a given CPU model and a
--
2.49.0.504.g3bcea36a83-goog