From 45c7107f95f00d37a32c328b7d5126f5f0572d30 Mon Sep 17 00:00:00 2001 From: George Steed Date: Fri, 13 Dec 2024 10:18:16 +0000 Subject: [PATCH] [AArch64] Fix compilation when SME is not supported The STREAMING_COMPATIBLE macro is designed to enable use of the __arm_streaming_compatible attribute with the intent that this macro expanded to empty if SME is not supported by the compiler or platform being compiled for, however in reality this macro remained undefined causing compilation to fail. Fix this by defining the macro to empty as originally intended. No-Try: True Change-Id: I8f5a8a606289b7c045fa1cce609f5a6d644891ac Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/6087913 Reviewed-by: Justin Green Commit-Queue: Mirko Bonadei Reviewed-by: Wan-Teh Chang --- include/libyuv/row_sve.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/libyuv/row_sve.h b/include/libyuv/row_sve.h index 51694a626..ce6ab0bae 100644 --- a/include/libyuv/row_sve.h +++ b/include/libyuv/row_sve.h @@ -23,6 +23,9 @@ extern "C" { #if !defined(LIBYUV_DISABLE_SME) && defined(CLANG_HAS_SME) && \ defined(__aarch64__) #define STREAMING_COMPATIBLE __arm_streaming_compatible +#else // defined(LIBYUV_DISABLE_SME) || !defined(CLANG_HAS_SME) || + // !defined(__aarch64__) +#define STREAMING_COMPATIBLE #endif // !defined(LIBYUV_DISABLE_SME) && defined(CLANG_HAS_SME) && // defined(__aarch64__)