]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crc32c: include acconfig.h to fix ceph_crc32c_aarch64() 15515/head
authorKefu Chai <kchai@redhat.com>
Tue, 6 Jun 2017 13:40:19 +0000 (21:40 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 6 Jun 2017 15:31:38 +0000 (23:31 +0800)
HAVE_ARMV8_CRC is defined by "acconfig.h". so we need to include it for
the definition.

it's a regresssion introduced by 2a3382f. in that change,
crc32c_intel_baseline.h was removed from crc32.cc, and that header
includes accconfig.h indirectly. that's why we will have a dummy
ceph_crc32c_aarch64() which always returns 0. the dummy implementation
was intended to please the compiler. but we can probably just drop it in
future as a cleanup.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/crc32c_aarch64.h

index 3727f545cecd31e1741bdf6d22521067ce5b9d74..51f0542fe302f5c0a40dbc14950d817d8e8d8911 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef CEPH_COMMON_CRC32C_AARCH64_H
 #define CEPH_COMMON_CRC32C_AARCH64_H
 
+#include "acconfig.h"
 #include "arch/arm.h"
 
 #ifdef __cplusplus