[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250324-s390-vdso-hwcap-v1-2-cb9ad001ceba@linutronix.de>
Date: Mon, 24 Mar 2025 15:03:16 +0100
From: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
To: Shuah Khan <shuah@...nel.org>, "Jason A. Donenfeld" <Jason@...c4.com>,
Heiko Carstens <hca@...ux.ibm.com>, Andy Lutomirski <luto@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Vincenzo Frascino <vincenzo.frascino@....com>
Cc: linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org,
Shuah Khan <skhan@...uxfoundation.org>,
Thomas Weißschuh <thomas.weissschuh@...utronix.de>
Subject: [PATCH 2/3] selftests: vDSO: chacha: Include asm/hwcap.h for arm64
The hwcap constants are not available unconditionally.
Include asm/hwcap.h to make them available.
Not all architectures provide this header, so gate the inclusion behind an
architecture-specific ifdef.
Fixes: 210860e7f733 ("selftests: vDSO: check cpu caps before running chacha test")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
---
tools/testing/selftests/vDSO/vdso_test_chacha.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/vDSO/vdso_test_chacha.c b/tools/testing/selftests/vDSO/vdso_test_chacha.c
index 0aad682b12c8836efabb49a65a47cf87466891a3..fd5c5108b42f04ec459d39b74f33edc2ceafbba1 100644
--- a/tools/testing/selftests/vDSO/vdso_test_chacha.c
+++ b/tools/testing/selftests/vDSO/vdso_test_chacha.c
@@ -13,6 +13,7 @@
#include "../kselftest.h"
#if defined(__aarch64__)
+#include <asm/hwcap.h>
static bool cpu_has_capabilities(void)
{
return getauxval(AT_HWCAP) & HWCAP_ASIMD;
--
2.48.1
Powered by blists - more mailing lists