]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
include: Fix new-style encoding routines on big-endian
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 2 Sep 2019 19:22:42 +0000 (21:22 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 2 Oct 2019 16:29:59 +0000 (18:29 +0200)
commit3d006ddd311b9f566c3088b2d4d658f597a18093
tree2080f7137068cd9b9863ae1785b923d8e7db260b
parent8cefc321cdd74a27d42c970937cda71638381fcf
include: Fix new-style encoding routines on big-endian

The new-style encoding routines (denc.h) are broken on big-endian
systems.  While there is a lot of infrastucture in place to
recognize data types that need to be byte-swapped during encoding
and decoding on big-endian systems, nothing is actually ever swapped.

Fixed by using ceph_le16/32/64 instead of __le16/32/64 (which are
no-ops outside of kernel code).

Fixes (partially): https://tracker.ceph.com/issues/41605

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
(cherry picked from commit 754b82ee15e6d1b52bc83011c2d7680bdb1d3830)
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
src/include/denc.h