]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
arch/arm: Allow ceph_crc32c_aarch64 to be chosen only if it is compiled in 24126/head
authorplanetbeing <planetbeing@gmail.com>
Mon, 17 Sep 2018 08:00:07 +0000 (01:00 -0700)
committerDavid Wang <planetbeing@gmail.com>
Mon, 17 Sep 2018 08:07:56 +0000 (01:07 -0700)
commit50d13b6f5a01e2955089f4502566848868bcee74
tree124ed68ff07519728ea968426b7b67640983c03f
parentf557a78540e56a3197ca0e3173cc726afc18ac28
arch/arm: Allow ceph_crc32c_aarch64 to be chosen only if it is compiled in

If the build host does not support the crc32cx instruction, HAVE_ARMV8_CRC will not be set and ceph_crc32c_aarch64 will be a dummy function that always returns zero. However, if HWCAP_CRC32 is supported on the actual target machine, that dummy function will be selected anyway. This patch ensures ceph_crc32c_aarch64 will never be chosen if it is not compiled in.

Fixes: https://tracker.ceph.com/issues/36030
Signed-off-by: David Wang <planetbeing@gmail.com>
src/common/crc32c.cc