]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
messages: Fix incorrect use of __le16/32/64
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 2 Sep 2019 19:24:35 +0000 (21:24 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 2 Oct 2019 16:30:18 +0000 (18:30 +0200)
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 <ulrich.weigand@de.ibm.com>
(cherry picked from commit 4dd426483294a22f2383aedec14e24ab0bc408c8)
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
src/messages/MMonSubscribe.h

index a21158aebd6454d49916361387da1fdcc88c4977..bbc883347d4880f726547304476c52d1dbfca2b6 100644 (file)
@@ -22,8 +22,8 @@
  * compatibility with old crap
  */
 struct ceph_mon_subscribe_item_old {
-       __le64 unused;
-       __le64 have;
+       ceph_le64 unused;
+       ceph_le64 have;
        __u8 onetime;
 } __attribute__ ((packed));
 WRITE_RAW_ENCODER(ceph_mon_subscribe_item_old)