]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commitdiff
serializing -- need to modify sizof macro to handle arrays -- also serdes
authorAlex Markuze <amarkuze@redhat.com>
Mon, 7 Apr 2025 20:10:08 +0000 (20:10 +0000)
committerAlex Markuze <amarkuze@redhat.com>
Mon, 7 Apr 2025 20:10:08 +0000 (20:10 +0000)
include/linux/ceph/ceph_san_ser.h

index 7f6e491e079f46e48f92e5fb58ec2c5281dbe3b1..fbfc71e3f7f08c5079a7a6f817d17aadfbc21dfc 100644 (file)
@@ -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))