summaryrefslogtreecommitdiffstats
path: root/include/rdma/opa_smi.h
diff options
context:
space:
mode:
authorErez Alfasi <ereza@mellanox.com>2019-02-25 07:52:30 +0100
committerJason Gunthorpe <jgg@mellanox.com>2019-03-26 01:14:12 +0100
commit19b1a294b0b3f4e8080584cd560fc058f12123fb (patch)
treed673f79839b1436aa812546ce41a42fa7442555e /include/rdma/opa_smi.h
parentRDMA/hns: Delete unused variable in hns_roce_v2_modify_qp function (diff)
downloadlinux-19b1a294b0b3f4e8080584cd560fc058f12123fb.tar.xz
linux-19b1a294b0b3f4e8080584cd560fc058f12123fb.zip
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>
Diffstat (limited to 'include/rdma/opa_smi.h')
-rw-r--r--include/rdma/opa_smi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rdma/opa_smi.h b/include/rdma/opa_smi.h
index f7896117936e..c7b2ef12792d 100644
--- a/include/rdma/opa_smi.h
+++ b/include/rdma/opa_smi.h
@@ -98,7 +98,7 @@ struct opa_smp {
struct opa_node_description {
u8 data[64];
-} __attribute__ ((packed));
+} __packed;
struct opa_node_info {
u8 base_version;
@@ -114,7 +114,7 @@ struct opa_node_info {
__be32 revision;
u8 local_port_num;
u8 vendor_id[3]; /* network byte order */
-} __attribute__ ((packed));
+} __packed;
#define OPA_PARTITION_TABLE_BLK_SIZE 32