From: Sage Weil Date: Tue, 2 Jun 2015 21:33:36 +0000 (-0700) Subject: arm: fix build on older kernels X-Git-Tag: v9.0.2~36^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fdcc0072ddc6620061f5a3f4ece09f65ac77200d;p=ceph.git arm: fix build on older kernels that don't define HWCAP_CRC32 Fixes: #11461 Signed-off-by: Sage Weil --- diff --git a/src/arch/arm.c b/src/arch/arm.c index 5a47e3349235..3560eb7b6738 100644 --- a/src/arch/arm.c +++ b/src/arch/arm.c @@ -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