[PATCH 1/2] kernel: cobalt: Fix up elf_hwcap

Greg Gallagher greg at embeddedgreg.com
Wed Jan 27 06:43:47 CET 2021


Update elf_hwcap to ELF_HWCAP, this will work for newer 5.4 kernels

Signen-off-by: Greg Gallagher <greg at embeddedgreg.com>
---
 kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h b/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h
index b7e3f52f2..291c9e5f0 100644
--- a/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h
+++ b/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h
@@ -23,7 +23,7 @@
 #include <asm/xenomai/uapi/fptest.h>
 #include <asm/hwcap.h>
 
-#define have_fp (elf_hwcap & HWCAP_FP)
+#define have_fp (ELF_HWCAP & HWCAP_FP)
 
 static inline int fp_kernel_supported(void)
 {
-- 
2.25.1




More information about the Xenomai mailing list