]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
arch/arm: set ceph_arch_aarch64_crc32 only if the build host supports crc32cx
authorKefu Chai <kchai@redhat.com>
Fri, 1 Sep 2017 09:32:22 +0000 (17:32 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 1 Sep 2017 17:54:06 +0000 (01:54 +0800)
commit8a077bd2a93d3e12e20013e76e57a35240f5f481
tree07a1b611839578db9d94d88cbb43d297b6bd248f
parentd0f6580a83dd3ef6fdf4c67c289496c2b185197c
arch/arm: set ceph_arch_aarch64_crc32 only if the build host supports crc32cx

HWCAP_CRC32 is defined by the linux kernel source. so it's defined as
long as the linux kernel source is new enough. but the compiler on the
building host is not necessarily able to build the `crc32cx`
instruction. if we happen to have an incapable compiler on a machine with
recent linux kernel source, the dummy "ceph_crc32c_aarch64()" will be
selected by `ceph_choose_crc32()`. and it always return 0.

See-also: http://tracker.ceph.com/issues/19705
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/arch/arm.c