RDMA: Use __packed annotation instead of __attribute__ ((packed))
authorErez Alfasi <ereza@mellanox.com>
Mon, 25 Feb 2019 06:52:30 +0000 (08:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 26 Mar 2019 00:14:12 +0000 (21:14 -0300)
commit19b1a294b0b3f4e8080584cd560fc058f12123fb
treed673f79839b1436aa812546ce41a42fa7442555e
parentd0a935563bc0f447abed7799388fa3f13099cc0d
RDMA: Use __packed annotation instead of __attribute__ ((packed))

"__attribute__" set of macros has been standardized, have became more
potentially portable and consistent code back in v2.6.21 by commit
82ddcb040 ("[PATCH] extend the set of "__attribute__" shortcut macros").
Moreover, nowadays checkpatch.pl warns about using __attribute__((packed))
instead of __packed.

This patch converts all the "__attribute__ ((packed))" annotations to
"__packed" within the RDMA subsystem.

Signed-off-by: Erez Alfasi <ereza@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
13 files changed:
drivers/infiniband/core/cm_msgs.h
drivers/infiniband/core/mad_priv.h
drivers/infiniband/hw/cxgb3/cxio_wr.h
drivers/infiniband/hw/mthca/mthca_cq.c
drivers/infiniband/hw/mthca/mthca_eq.c
drivers/infiniband/hw/mthca/mthca_mr.c
drivers/infiniband/hw/mthca/mthca_qp.c
drivers/infiniband/sw/rxe/rxe_hdr.h
drivers/infiniband/ulp/iser/iscsi_iser.h
include/rdma/ib_mad.h
include/rdma/ib_smi.h
include/rdma/opa_port_info.h
include/rdma/opa_smi.h