History

IB/uverbs: Use __aligned_u64 for uapi headers

This has no impact on the structure layout since these structs already have their u64s already properly aligned, but it does document that we have this requirement for 32 bit compatibility.

Jason Gunthorpe committed 8 years ago

Commit 5d2beb51 parent 3d894591 file · +2 −2Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/rdma/rdma_user_ioctl.h+2−2
@@ -65,7 +65,7 @@ struct ib_uverbs_attr { · 64 unmodified lines
65 __u16 len; /* only for pointers */65 __u16 len; /* only for pointers */
66 __u16 flags; /* combination of UVERBS_ATTR_F_XXXX */66 __u16 flags; /* combination of UVERBS_ATTR_F_XXXX */
67 __u16 reserved;67 __u16 reserved;
68 __u64 data; /* ptr to command, inline data or idr/fd */68 __aligned_u64 data; /* ptr to command, inline data or idr/fd */
69};69};
70 70
71struct ib_uverbs_ioctl_hdr {71struct ib_uverbs_ioctl_hdr {
@@ -73,7 +73,7 @@ struct ib_uverbs_ioctl_hdr { · 1 unmodified line
73 __u16 object_id;73 __u16 object_id;
74 __u16 method_id;74 __u16 method_id;
75 __u16 num_attrs;75 __u16 num_attrs;
76 __u64 reserved;76 __aligned_u64 reserved;
77 struct ib_uverbs_attr attrs[0];77 struct ib_uverbs_attr attrs[0];
78};78};
79 79