From: Ulrich Weigand Date: Mon, 2 Sep 2019 19:27:22 +0000 (+0200) Subject: librados,test: Fix incorrect use of __le16/32/64 X-Git-Tag: v15.1.0~1637^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f798cc9d73d9fb83705cfe01d41a4c0ed7fa2fea;p=ceph.git librados,test: Fix incorrect use of __le16/32/64 Use ceph_le16/32/64 instead of __le16/32/64 (which are no-op outside of kernel code). Fixes (partially): https://tracker.ceph.com/issues/41605 Signed-off-by: Ulrich Weigand --- diff --git a/src/test/librados/aio.cc b/src/test/librados/aio.cc index 503f992c0691..a8ca47b8b8fc 100644 --- a/src/test/librados/aio.cc +++ b/src/test/librados/aio.cc @@ -226,8 +226,8 @@ TEST(LibRadosAio, RoundTrip3) { rados_read_op_read(op2, 0, sizeof(buf2), buf2, NULL, NULL); rados_read_op_set_flags(op2, LIBRADOS_OP_FLAG_FADVISE_NOCACHE | LIBRADOS_OP_FLAG_FADVISE_RANDOM); - __le32 init_value = -1; - __le32 checksum[2]; + ceph_le32 init_value = init_le32(-1); + ceph_le32 checksum[2]; rados_read_op_checksum(op2, LIBRADOS_CHECKSUM_TYPE_CRC32C, reinterpret_cast(&init_value), sizeof(init_value), 0, 0, 0,