]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
arch/arm: set ceph_arch_aarch64_crc32 only if the build host supports crc32cx 18293/head
authorKefu Chai <kchai@redhat.com>
Fri, 1 Sep 2017 09:32:22 +0000 (17:32 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 13 Oct 2017 12:16:53 +0000 (14:16 +0200)
commit2e6b29084ae505098fe6889d69133a8527c773be
tree0b126519560b5f4e9fa241c4d9ef96d3108eaebf
parent09d597d34a1d567dc5350570f044eaa3d74a024f
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>
(cherry picked from commit 8a077bd2a93d3e12e20013e76e57a35240f5f481)
src/arch/arm.c