From: Kefu Chai Date: Wed, 13 Sep 2017 09:20:05 +0000 (+0800) Subject: crc32c: pass integer param by uint64_t X-Git-Tag: v13.0.1~880^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cea9f1e3da6097dee70457909b310dcd33b0144d;p=ceph.git crc32c: pass integer param by uint64_t the assembly is expecting 64bits input, so make this explicit. Signed-off-by: Kefu Chai --- diff --git a/src/common/crc32c_intel_fast.c b/src/common/crc32c_intel_fast.c index 4a3bfc930e5e..188ff95ff5af 100644 --- a/src/common/crc32c_intel_fast.c +++ b/src/common/crc32c_intel_fast.c @@ -1,8 +1,8 @@ #include "acconfig.h" #include "common/crc32c_intel_baseline.h" -extern unsigned int crc32_iscsi_00(unsigned char const *buffer, int len, unsigned int crc) asm("crc32_iscsi_00"); -extern unsigned int crc32_iscsi_zero_00(unsigned char const *buffer, int len, unsigned int crc) asm("crc32_iscsi_zero_00"); +extern unsigned int crc32_iscsi_00(unsigned char const *buffer, uint64_t len, uint64_t crc) asm("crc32_iscsi_00"); +extern unsigned int crc32_iscsi_zero_00(unsigned char const *buffer, uint64_t len, uint64_t crc) asm("crc32_iscsi_zero_00"); #ifdef HAVE_GOOD_YASM_ELF64