diff options
author | Kevin McKinney | 2012-12-22 20:27:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2013-01-07 19:56:44 +0100 |
commit | 5f8797b64f62662f36814db36409720eac02a5a4 (patch) | |
tree | f4ba6ffe4df1be5f69671ebf2f72580531b08709 /drivers/staging/bcm | |
parent | Staging: bcm: Properly format braces in Protocol.h (diff) | |
download | kernel-qcow2-linux-5f8797b64f62662f36814db36409720eac02a5a4.tar.gz kernel-qcow2-linux-5f8797b64f62662f36814db36409720eac02a5a4.tar.xz kernel-qcow2-linux-5f8797b64f62662f36814db36409720eac02a5a4.zip |
Staging: bcm: Fix warning: "__packed is preferred over __attribute__((packed))" in Protocol.h
This patch fixes the following warning: "__packed
is preferred over __attribute__((packed))" as
reported by checkpatch.pl.
Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/bcm')
-rw-r--r-- | drivers/staging/bcm/Protocol.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/bcm/Protocol.h b/drivers/staging/bcm/Protocol.h index 184d2154c657..bb62e1711565 100644 --- a/drivers/staging/bcm/Protocol.h +++ b/drivers/staging/bcm/Protocol.h @@ -20,7 +20,7 @@ struct TransportHeaderT { struct udphdr uhdr; struct tcphdr thdr; }; -} __attribute__((packed)); +} __packed; typedef struct TransportHeaderT xporthdr; typedef enum _E_NWPKT_IPFRAME_TYPE { @@ -50,14 +50,14 @@ typedef struct _ETH_CS_802_Q_FRAME { USHORT CFI:1; USHORT VLANID:12; USHORT EthType; -} __attribute__((packed)) ETH_CS_802_Q_FRAME; +} __packed ETH_CS_802_Q_FRAME; typedef struct _ETH_CS_802_LLC_FRAME { struct bcm_eth_header EThHdr; unsigned char DSAP; unsigned char SSAP; unsigned char Control; -} __attribute__((packed)) ETH_CS_802_LLC_FRAME; +} __packed ETH_CS_802_LLC_FRAME; typedef struct _ETH_CS_802_LLC_SNAP_FRAME { struct bcm_eth_header EThHdr; @@ -66,11 +66,11 @@ typedef struct _ETH_CS_802_LLC_SNAP_FRAME { unsigned char Control; unsigned char OUI[3]; unsigned short usEtherType; -} __attribute__((packed)) ETH_CS_802_LLC_SNAP_FRAME; +} __packed ETH_CS_802_LLC_SNAP_FRAME; typedef struct _ETH_CS_ETH2_FRAME { struct bcm_eth_header EThHdr; -} __attribute__((packed)) ETH_CS_ETH2_FRAME; +} __packed ETH_CS_ETH2_FRAME; #define ETHERNET_FRAMETYPE_IPV4 ntohs(0x0800) #define ETHERNET_FRAMETYPE_IPV6 ntohs(0x86dd) |