aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/ocrdma-abi.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-02-07 16:45:51 -0700
committerJason Gunthorpe <jgg@mellanox.com>2018-02-14 16:31:35 -0700
commit5229f87efcc5a0c800e7f3b49264af984ea4aba9 (patch)
treec908577b3b33c8519391be781a18f36b131fdc34 /include/uapi/rdma/ocrdma-abi.h
parentRDMA/hns: Use free_pages function instead of free_page (diff)
downloadlinux-dev-5229f87efcc5a0c800e7f3b49264af984ea4aba9.tar.xz
linux-dev-5229f87efcc5a0c800e7f3b49264af984ea4aba9.zip
RDMA: Do not used __packed in uapi headers
__packed is not available in linux/types.h, so we cannot use it in the uapi headers. The construction struct ABC {} __packed; may still compile even if __packed is not defined, however it simply creates a variable called __packed, and doesn't set the alignment. All these uses of packed are on structs that already have aligned members. While use in hfi may indicate the struct itself is unaligned, the use in ocrdma is on a UHW struct which should never be unaligned, so just delete it there. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--include/uapi/rdma/ocrdma-abi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/rdma/ocrdma-abi.h b/include/uapi/rdma/ocrdma-abi.h
index ad64a3cea1cd..e0475d59cdf0 100644
--- a/include/uapi/rdma/ocrdma-abi.h
+++ b/include/uapi/rdma/ocrdma-abi.h
@@ -127,7 +127,7 @@ struct ocrdma_create_qp_uresp {
__u32 db_rq_offset;
__u32 db_shift;
__u64 rsvd[11];
-} __packed;
+};
struct ocrdma_create_srq_uresp {
__u16 rq_dbid;