]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/crc32c: skip cpu detection incantation on not x86_64
authorSage Weil <sage@inktank.com>
Sat, 6 Jul 2013 00:21:06 +0000 (17:21 -0700)
committerSage Weil <sage@inktank.com>
Mon, 8 Jul 2013 17:54:53 +0000 (10:54 -0700)
commite9d19b38c88eecdef254a74c22c504fc8db9b355
tree51abb461598485a8981a448613b5ad0311b8fdb8
parent0471b719c262f5cd29f8030fd5b9d9f01fe96d5f
common/crc32c: skip cpu detection incantation on not x86_64

On i386 this fails to build with

common/crc32c-intel.c: In function 'ceph_have_crc32c_intel':
error: common/crc32c-intel.c:79:9: PIC register clobbered by 'ebx' in 'asm'

ARM had more to complain about.

Not sure where this test came from, but it is clearly not meant for
anything other than x86_64.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
src/common/crc32c-intel.c