]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
compressor/zlib: fix bogus ISA-L warning on aarch64
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Mon, 25 May 2026 07:07:04 +0000 (15:07 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Mon, 25 May 2026 07:32:38 +0000 (15:32 +0800)
The guard

    #if !(__x86_64__ && defined(HAVE_NASM_X64_AVX2)) || defined(__aarch64__)

binds the negation only to the x86 half, so aarch64 (where ISA-L
is supported) always hit the warning branch.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/compressor/zlib/ZlibCompressor.cc

index 685b7fc4320103653fa695a90eeaef8c3e45c885..b76826d6c3f7abb72933a8b6b577d7c45689383a 100644 (file)
@@ -70,7 +70,9 @@ ZlibCompressor::ZlibCompressor(CephContext *cct, bool isal)
   : Compressor(COMP_ALG_ZLIB, "zlib"), isal_enabled(isal), cct(cct)
 {
 
-#if !(__x86_64__ && defined(HAVE_NASM_X64_AVX2)) || defined(__aarch64__)
+#if (__x86_64__ && defined(HAVE_NASM_X64_AVX2))
+#elif defined(__aarch64__)
+#else
   if (isal_enabled) {
     derr << "WARN: ISA-L enabled (compressor_zlib_isal=true) but not supported"
          << dendl;