Crypto: use VC_INLINE for the ARM CPU_Query helpers (#1886)

C99 inline without static does not emit a function body, so aarch64
builds at -O0/-Os fail to link DetectArmFeatures (undefined reference
to CPU_QueryAES / CPU_QuerySHA2). Use VC_INLINE like the other helpers
in cpu.c.

Signed-off-by: Ville Takio <ville+git@takio.fi>
This commit is contained in:
Ville Takio authored and GitHub committed 2026-09-30 20:52:30 +09:00
1 parent fb9d96c52d
commit 5c7f60dfcf
1 file changed
+2 -2
+2 -2
View File
@@ -492,7 +492,7 @@ void DisableCPUExtendedFeatures ()
volatile int g_hasAESARM = 0; volatile int g_hasAESARM = 0;
volatile int g_hasSHA256ARM = 0; volatile int g_hasSHA256ARM = 0;
inline int CPU_QueryAES() VC_INLINE int CPU_QueryAES()
{ {
#if defined(CRYPTOPP_ARM_AES_AVAILABLE) #if defined(CRYPTOPP_ARM_AES_AVAILABLE)
#if defined(__linux__) && defined(__aarch64__) #if defined(__linux__) && defined(__aarch64__)
@@ -516,7 +516,7 @@ inline int CPU_QueryAES()
#endif #endif
} }
inline int CPU_QuerySHA2() VC_INLINE int CPU_QuerySHA2()
{ {
#if defined(CRYPTOPP_ARM_SHA2_AVAILABLE) #if defined(CRYPTOPP_ARM_SHA2_AVAILABLE)
#if defined(__linux__) && defined(__aarch64__) #if defined(__linux__) && defined(__aarch64__)