RDMA: Do not used __packed in uapi headers
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 7 Feb 2018 23:45:51 +0000 (16:45 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 14 Feb 2018 23:31:35 +0000 (16:31 -0700)
commit5229f87efcc5a0c800e7f3b49264af984ea4aba9
treec908577b3b33c8519391be781a18f36b131fdc34
parentd480bb50d294e23a6773c507b8017e6bc45efc67
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>
include/uapi/rdma/hfi/hfi1_user.h
include/uapi/rdma/ocrdma-abi.h