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
6565 __u16 len; /* only for pointers */
6666 __u16 flags; /* combination of UVERBS_ATTR_F_XXXX */
6767 __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 */
6969 };
7070
7171 struct ib_uverbs_ioctl_hdr {
@@ -73,7 +73,7 @@ struct ib_uverbs_ioctl_hdr { · 1 unmodified line
7373 __u16 object_id;
7474 __u16 method_id;
7575 __u16 num_attrs;
76− __u64 reserved;
76+ __aligned_u64 reserved;
7777 struct ib_uverbs_attr attrs[0];
7878 };
7979