From: Alex Markuze Date: Mon, 7 Apr 2025 20:10:08 +0000 (+0000) Subject: serializing -- need to modify sizof macro to handle arrays -- also serdes X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=299af9715a23b2cd90e4bbb595731fd14d2db85d;p=ceph-client.git serializing -- need to modify sizof macro to handle arrays -- also serdes --- diff --git a/include/linux/ceph/ceph_san_ser.h b/include/linux/ceph/ceph_san_ser.h index 7f6e491e079f4..fbfc71e3f7f08 100644 --- a/include/linux/ceph/ceph_san_ser.h +++ b/include/linux/ceph/ceph_san_ser.h @@ -99,7 +99,7 @@ (*(uint32_t *)(__buffer) = __suppress_cast_warning(uint32_t, __t)), \ __builtin_choose_expr(sizeof(__t) == 8, \ (*(uint64_t *)(__buffer) = __suppress_cast_warning(uint64_t, __t)), \ - (*(typeof(__t) *)(__buffer) = __suppress_cast_warning(typeof(__t), __t)) \ + ((void)0 ) \ )))))) #define __ceph_san_ser(__buffer, __t) (__ceph_san_ser_type(__buffer, __t), __buffer = (void*)((typeof(__t)*)__buffer + 1))