X-Git-Url: https://git.proxmox.com/?p=ceph.git;a=blobdiff_plain;f=ceph%2Fsrc%2Fspdk%2Flib%2Futil%2Fcrc32.c;h=34bb60b782853c26dc7974b93eef6bfd3409c865;hp=6fbb004ce817811bc9ed9642a5671856556f7087;hb=f67539c23b11f3b8a2ecaeeddf7a403ae1c442a8;hpb=64a4c04e6850c6d9086e4c37f57c4eada541b05e diff --git a/ceph/src/spdk/lib/util/crc32.c b/ceph/src/spdk/lib/util/crc32.c index 6fbb004ce..34bb60b78 100644 --- a/ceph/src/spdk/lib/util/crc32.c +++ b/ceph/src/spdk/lib/util/crc32.c @@ -31,10 +31,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "util_internal.h" #include "spdk/crc32.h" void -spdk_crc32_table_init(struct spdk_crc32_table *table, uint32_t polynomial_reflect) +crc32_table_init(struct spdk_crc32_table *table, uint32_t polynomial_reflect) { int i, j; uint32_t val; @@ -55,7 +56,7 @@ spdk_crc32_table_init(struct spdk_crc32_table *table, uint32_t polynomial_reflec #ifdef SPDK_HAVE_ARM_CRC uint32_t -spdk_crc32_update(const struct spdk_crc32_table *table, const void *buf, size_t len, uint32_t crc) +crc32_update(const struct spdk_crc32_table *table, const void *buf, size_t len, uint32_t crc) { size_t count; const uint64_t *dword_buf; @@ -79,7 +80,7 @@ spdk_crc32_update(const struct spdk_crc32_table *table, const void *buf, size_t #else uint32_t -spdk_crc32_update(const struct spdk_crc32_table *table, const void *buf, size_t len, uint32_t crc) +crc32_update(const struct spdk_crc32_table *table, const void *buf, size_t len, uint32_t crc) { const uint8_t *buf_u8 = buf; size_t i;