]> git-server-git.apps.pok.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>
Thu, 5 Sep 2019 08:50:04 +0000 (10:50 +0200)
commit754b82ee15e6d1b52bc83011c2d7680bdb1d3830
tree26dc11ac09bba6dc3ca49d15caece05dbaf38b75
parentc576bb28a7744fac6d0bb02cc67c7e6542218e95
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>
src/include/denc.h