]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
arm: fix build on older kernels 4834/head
authorSage Weil <sage@redhat.com>
Tue, 2 Jun 2015 21:33:36 +0000 (14:33 -0700)
committerSage Weil <sage@redhat.com>
Tue, 2 Jun 2015 21:33:36 +0000 (14:33 -0700)
that don't define HWCAP_CRC32

Fixes: #11461
Signed-off-by: Sage Weil <sage@redhat.com>
src/arch/arm.c

index 5a47e33492351fdaa456072182c6f851956f1d26..3560eb7b6738f9cd11d9967b362f2eba35b5c884 100644 (file)
@@ -48,7 +48,11 @@ int ceph_arch_arm_probe(void)
        ceph_arch_neon = (get_hwcap() & HWCAP_NEON) == HWCAP_NEON;
 #elif __aarch64__ && __linux__
        ceph_arch_neon = (get_hwcap() & HWCAP_ASIMD) == HWCAP_ASIMD;
+# ifdef HWCAP_CRC32
        ceph_arch_aarch64_crc32 = (get_hwcap() & HWCAP_CRC32) == HWCAP_CRC32;
+# else
+       ceph_arch_aarch64_crc32 = false;  // sorry!
+# endif
 #else
        if (0)
                get_hwcap();  // make compiler shut up