Skip to content

Commit

Permalink
firewire: net: replacing deprecated __attribute__((packed)) with __pa…
Browse files Browse the repository at this point in the history
…cked

Fixing a deprecation, replacing __attribute__((packed)) with __packed.
It was deprecated for portability, specifically to avoid GCC specific
code.  See commit 82ddcb0.

Signed-off-by: August Lilleaas <august@augustl.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> (added include compiler.h)
  • Loading branch information
August Lilleaas authored and Stefan Richter committed Jun 2, 2011
1 parent 105e53f commit bf337b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/firewire/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

#include <linux/bug.h>
#include <linux/compiler.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/ethtool.h>
Expand Down Expand Up @@ -73,15 +74,15 @@ struct rfc2734_arp {
__be32 fifo_lo; /* lo 32bits of sender's FIFO addr */
__be32 sip; /* Sender's IP Address */
__be32 tip; /* IP Address of requested hw addr */
} __attribute__((packed));
} __packed;

/* This header format is specific to this driver implementation. */
#define FWNET_ALEN 8
#define FWNET_HLEN 10
struct fwnet_header {
u8 h_dest[FWNET_ALEN]; /* destination address */
__be16 h_proto; /* packet type ID field */
} __attribute__((packed));
} __packed;

/* IPv4 and IPv6 encapsulation header */
struct rfc2734_header {
Expand Down

0 comments on commit bf337b1

Please sign in to comment.