Commit 5f8797b6 authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman

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: default avatarKevin McKinney <klmckinney1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3df56e10
...@@ -20,7 +20,7 @@ struct TransportHeaderT { ...@@ -20,7 +20,7 @@ struct TransportHeaderT {
struct udphdr uhdr; struct udphdr uhdr;
struct tcphdr thdr; struct tcphdr thdr;
}; };
} __attribute__((packed)); } __packed;
typedef struct TransportHeaderT xporthdr; typedef struct TransportHeaderT xporthdr;
typedef enum _E_NWPKT_IPFRAME_TYPE { typedef enum _E_NWPKT_IPFRAME_TYPE {
...@@ -50,14 +50,14 @@ typedef struct _ETH_CS_802_Q_FRAME { ...@@ -50,14 +50,14 @@ typedef struct _ETH_CS_802_Q_FRAME {
USHORT CFI:1; USHORT CFI:1;
USHORT VLANID:12; USHORT VLANID:12;
USHORT EthType; USHORT EthType;
} __attribute__((packed)) ETH_CS_802_Q_FRAME; } __packed ETH_CS_802_Q_FRAME;
typedef struct _ETH_CS_802_LLC_FRAME { typedef struct _ETH_CS_802_LLC_FRAME {
struct bcm_eth_header EThHdr; struct bcm_eth_header EThHdr;
unsigned char DSAP; unsigned char DSAP;
unsigned char SSAP; unsigned char SSAP;
unsigned char Control; unsigned char Control;
} __attribute__((packed)) ETH_CS_802_LLC_FRAME; } __packed ETH_CS_802_LLC_FRAME;
typedef struct _ETH_CS_802_LLC_SNAP_FRAME { typedef struct _ETH_CS_802_LLC_SNAP_FRAME {
struct bcm_eth_header EThHdr; struct bcm_eth_header EThHdr;
...@@ -66,11 +66,11 @@ typedef struct _ETH_CS_802_LLC_SNAP_FRAME { ...@@ -66,11 +66,11 @@ typedef struct _ETH_CS_802_LLC_SNAP_FRAME {
unsigned char Control; unsigned char Control;
unsigned char OUI[3]; unsigned char OUI[3];
unsigned short usEtherType; unsigned short usEtherType;
} __attribute__((packed)) ETH_CS_802_LLC_SNAP_FRAME; } __packed ETH_CS_802_LLC_SNAP_FRAME;
typedef struct _ETH_CS_ETH2_FRAME { typedef struct _ETH_CS_ETH2_FRAME {
struct bcm_eth_header EThHdr; 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_IPV4 ntohs(0x0800)
#define ETHERNET_FRAMETYPE_IPV6 ntohs(0x86dd) #define ETHERNET_FRAMETYPE_IPV6 ntohs(0x86dd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment