On platforms that do not the __le* definitions it throws a compiler error.
fixes: https://github.com/ceph/ceph/pull/35186
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
for (auto& i : by_hash) {
denc_signed_varint(i.first.first, p);
// this may write some bytes past where we move cursor too; harmless!
- *(__le32*)p.get_pos_add(hash_bytes) = i.first.second;
+ *(ceph_le32*)p.get_pos_add(hash_bytes) = i.first.second;
denc_varint(i.second, p);
}
DENC_FINISH(p);
int hash_bytes = (hash_bits + 7) / 8;
while (n--) {
int64_t poolid;
- __le32 hash;
+ ceph_le32 hash;
uint64_t count;
denc_signed_varint(poolid, p);
memcpy(&hash, p.get_pos_add(hash_bytes), hash_bytes);