diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-08-22 22:59:11 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:59 -0400 |
commit | 701181ac1d9ac465a3614061cb60ded4033c4d07 (patch) | |
tree | e369e1a0923d6dc29ef7c75ec166fe19b90add97 /drivers | |
parent | 05d2fec9f5e5fd1d7169435631b9d55ae4c566d1 (diff) |
arcnet endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/arcnet/rfc1051.c | 4 | ||||
-rw-r--r-- | drivers/net/arcnet/rfc1201.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/arcnet/rfc1051.c b/drivers/net/arcnet/rfc1051.c index 2de8877ece2..dab185bc51f 100644 --- a/drivers/net/arcnet/rfc1051.c +++ b/drivers/net/arcnet/rfc1051.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #define VERSION "arcnet: RFC1051 \"simple standard\" (`s') encapsulation support loaded.\n" | 34 | #define VERSION "arcnet: RFC1051 \"simple standard\" (`s') encapsulation support loaded.\n" |
35 | 35 | ||
36 | 36 | ||
37 | static unsigned short type_trans(struct sk_buff *skb, struct net_device *dev); | 37 | static __be16 type_trans(struct sk_buff *skb, struct net_device *dev); |
38 | static void rx(struct net_device *dev, int bufnum, | 38 | static void rx(struct net_device *dev, int bufnum, |
39 | struct archdr *pkthdr, int length); | 39 | struct archdr *pkthdr, int length); |
40 | static int build_header(struct sk_buff *skb, struct net_device *dev, | 40 | static int build_header(struct sk_buff *skb, struct net_device *dev, |
@@ -86,7 +86,7 @@ MODULE_LICENSE("GPL"); | |||
86 | * | 86 | * |
87 | * With ARCnet we have to convert everything to Ethernet-style stuff. | 87 | * With ARCnet we have to convert everything to Ethernet-style stuff. |
88 | */ | 88 | */ |
89 | static unsigned short type_trans(struct sk_buff *skb, struct net_device *dev) | 89 | static __be16 type_trans(struct sk_buff *skb, struct net_device *dev) |
90 | { | 90 | { |
91 | struct arcnet_local *lp = dev->priv; | 91 | struct arcnet_local *lp = dev->priv; |
92 | struct archdr *pkt = (struct archdr *) skb->data; | 92 | struct archdr *pkt = (struct archdr *) skb->data; |
diff --git a/drivers/net/arcnet/rfc1201.c b/drivers/net/arcnet/rfc1201.c index 460a095000c..6d6d95cc440 100644 --- a/drivers/net/arcnet/rfc1201.c +++ b/drivers/net/arcnet/rfc1201.c | |||
@@ -34,7 +34,7 @@ MODULE_LICENSE("GPL"); | |||
34 | #define VERSION "arcnet: RFC1201 \"standard\" (`a') encapsulation support loaded.\n" | 34 | #define VERSION "arcnet: RFC1201 \"standard\" (`a') encapsulation support loaded.\n" |
35 | 35 | ||
36 | 36 | ||
37 | static unsigned short type_trans(struct sk_buff *skb, struct net_device *dev); | 37 | static __be16 type_trans(struct sk_buff *skb, struct net_device *dev); |
38 | static void rx(struct net_device *dev, int bufnum, | 38 | static void rx(struct net_device *dev, int bufnum, |
39 | struct archdr *pkthdr, int length); | 39 | struct archdr *pkthdr, int length); |
40 | static int build_header(struct sk_buff *skb, struct net_device *dev, | 40 | static int build_header(struct sk_buff *skb, struct net_device *dev, |
@@ -88,7 +88,7 @@ module_exit(arcnet_rfc1201_exit); | |||
88 | * | 88 | * |
89 | * With ARCnet we have to convert everything to Ethernet-style stuff. | 89 | * With ARCnet we have to convert everything to Ethernet-style stuff. |
90 | */ | 90 | */ |
91 | static unsigned short type_trans(struct sk_buff *skb, struct net_device *dev) | 91 | static __be16 type_trans(struct sk_buff *skb, struct net_device *dev) |
92 | { | 92 | { |
93 | struct archdr *pkt = (struct archdr *) skb->data; | 93 | struct archdr *pkt = (struct archdr *) skb->data; |
94 | struct arc_rfc1201 *soft = &pkt->soft.rfc1201; | 94 | struct arc_rfc1201 *soft = &pkt->soft.rfc1201; |
@@ -456,7 +456,7 @@ static void load_pkt(struct net_device *dev, struct arc_hardware *hard, | |||
456 | 456 | ||
457 | excsoft.proto = soft->proto; | 457 | excsoft.proto = soft->proto; |
458 | excsoft.split_flag = 0xff; | 458 | excsoft.split_flag = 0xff; |
459 | excsoft.sequence = 0xffff; | 459 | excsoft.sequence = htons(0xffff); |
460 | 460 | ||
461 | hard->offset[0] = 0; | 461 | hard->offset[0] = 0; |
462 | ofs = 512 - softlen; | 462 | ofs = 512 - softlen; |