summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/brocade/bna/bfa_defs.h
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2015-06-11 15:52:15 +0200
committerDavid S. Miller <davem@davemloft.net>2015-06-12 00:57:15 +0200
commite423c85603fadfeb31f103826cf5986c78d949a4 (patch)
treef266e4cb9a5701d40526bc184c5cd50587732467 /drivers/net/ethernet/brocade/bna/bfa_defs.h
parentbna: get rid of mac_t (diff)
downloadlinux-e423c85603fadfeb31f103826cf5986c78d949a4.tar.xz
linux-e423c85603fadfeb31f103826cf5986c78d949a4.zip
bna: replace pragma(pack) with attribute __packed
Signed-off-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade/bna/bfa_defs.h')
-rw-r--r--drivers/net/ethernet/brocade/bna/bfa_defs.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bfa_defs.h b/drivers/net/ethernet/brocade/bna/bfa_defs.h
index f55887b5121b..6827d915b818 100644
--- a/drivers/net/ethernet/brocade/bna/bfa_defs.h
+++ b/drivers/net/ethernet/brocade/bna/bfa_defs.h
@@ -187,8 +187,6 @@ enum {
#define BFA_MFG_SUPPLIER_SERIALNUM_SIZE 20
#define BFA_MFG_SUPPLIER_REVISION_SIZE 4
-#pragma pack(1)
-
/* BFA adapter manufacturing block definition.
*
* All numerical fields are in big-endian format.
@@ -227,9 +225,7 @@ struct bfa_mfg_block {
char initial_mode[8]; /* initial mode: hba/cna/nic */
u8 rsv4[84];
u8 md5_chksum[BFA_MFG_CHKSUM_SIZE]; /* md5 checksum */
-};
-
-#pragma pack()
+} __packed;
/* ---------------------- pci definitions ------------ */