diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-03-20 14:19:51 -0600 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-03-27 14:25:09 -0600 |
commit | 26b9906612c3553189d7d1673ee116ffac474d53 (patch) | |
tree | 33a01f00d30e60c07a1e6142fe55ddec46c4bf4f /include/uapi/rdma/ib_user_mad.h | |
parent | f2e9bfac13c904e5cfe58612002acde6f058dc83 (diff) | |
download | lwn-26b9906612c3553189d7d1673ee116ffac474d53.tar.gz lwn-26b9906612c3553189d7d1673ee116ffac474d53.zip |
RDMA: Change all uapi headers to use __aligned_u64 instead of __u64
The new auditing standard for the subsystem will be to only use
__aligned_64 in uapi headers to try and prevent 32/64 compat bugs
from existing in the future.
Changing all existing usage will help ensure new developers copy the
right idea.
The before/after of this patch was tested using pahole on 32 and 64
bit compiles to confirm it has no change in the structure layout, so
this patch is a NOP.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/uapi/rdma/ib_user_mad.h')
-rw-r--r-- | include/uapi/rdma/ib_user_mad.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/rdma/ib_user_mad.h b/include/uapi/rdma/ib_user_mad.h index 330a3c5f1aa8..ef92118dad97 100644 --- a/include/uapi/rdma/ib_user_mad.h +++ b/include/uapi/rdma/ib_user_mad.h @@ -143,7 +143,7 @@ struct ib_user_mad_hdr { */ struct ib_user_mad { struct ib_user_mad_hdr hdr; - __u64 data[0]; + __aligned_u64 data[0]; }; /* @@ -225,7 +225,7 @@ struct ib_user_mad_reg_req2 { __u8 mgmt_class_version; __u16 res; __u32 flags; - __u64 method_mask[2]; + __aligned_u64 method_mask[2]; __u32 oui; __u8 rmpp_version; __u8 reserved[3]; |