]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cls: replace __le{32,64} types by their Ceph counterparts 37077/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sat, 19 Sep 2020 21:57:18 +0000 (23:57 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Sun, 20 Sep 2020 10:43:25 +0000 (12:43 +0200)
__le* types are not avaialble on FreeBSD, so that is fixed.

And replacing __le* with ceph_le* is possible as long as
the variables are not using in kernel related parts.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/cls/fifo/cls_fifo.cc

index 4bf0c34e7eb152449a0b7ac2e09b1b0416d4bf2b..599970f6df110d619fd50aafb365ddf283603449 100644 (file)
@@ -34,12 +34,12 @@ static constexpr auto CLS_FIFO_MAX_PART_HEADER_SIZE = 512;
 static std::uint32_t part_entry_overhead;
 
 struct entry_header_pre {
-  __le64 magic;
-  __le64 pre_size;
-  __le64 header_size;
-  __le64 data_size;
-  __le64 index;
-  __le32 reserved;
+  ceph_le64 magic;
+  ceph_le64 pre_size;
+  ceph_le64 header_size;
+  ceph_le64 data_size;
+  ceph_le64 index;
+  ceph_le32 reserved;
 } __attribute__ ((packed));
 
 struct entry_header {