]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Thu, 5 Sep 2019 08:50:04 +0000 (10:50 +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>
src/messages/MMonSubscribe.h

index 2872c0b46e11626c1a2ed56d4c8b2100e5223ed7..2ae6140a85fb98ea69f0a8434bae1c6100fa329f 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)