summaryrefslogtreecommitdiff
path: root/include/uapi/rdma/hfi/hfi1_user.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-03-20 23:19:51 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-03-27 23:25:09 +0300
commit26b9906612c3553189d7d1673ee116ffac474d53 (patch)
tree33a01f00d30e60c07a1e6142fe55ddec46c4bf4f /include/uapi/rdma/hfi/hfi1_user.h
parentf2e9bfac13c904e5cfe58612002acde6f058dc83 (diff)
downloadlinux-26b9906612c3553189d7d1673ee116ffac474d53.tar.xz
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/hfi/hfi1_user.h')
-rw-r--r--include/uapi/rdma/hfi/hfi1_user.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/rdma/hfi/hfi1_user.h b/include/uapi/rdma/hfi/hfi1_user.h
index 43b46bf6f8bb..c6a984c0c881 100644
--- a/include/uapi/rdma/hfi/hfi1_user.h
+++ b/include/uapi/rdma/hfi/hfi1_user.h
@@ -177,8 +177,8 @@ struct hfi1_sdma_comp_entry {
* Device status and notifications from driver to user-space.
*/
struct hfi1_status {
- __u64 dev; /* device/hw status bits */
- __u64 port; /* port state and status bits */
+ __aligned_u64 dev; /* device/hw status bits */
+ __aligned_u64 port; /* port state and status bits */
char freezemsg[0];
};