Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=701181ac1d9ac465a3614061cb60ded4033c4d07
Commit:     701181ac1d9ac465a3614061cb60ded4033c4d07
Parent:     05d2fec9f5e5fd1d7169435631b9d55ae4c566d1
Author:     Al Viro <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 22 22:59:11 2007 -0400
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:51:59 2007 -0700

    arcnet endianness annotations
    
    Signed-off-by: Al Viro <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/net/arcnet/rfc1051.c |    4 ++--
 drivers/net/arcnet/rfc1201.c |    6 +++---
 include/linux/arcdevice.h    |    4 ++--
 include/linux/if_arcnet.h    |    2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/net/arcnet/rfc1051.c b/drivers/net/arcnet/rfc1051.c
index 2de8877..dab185b 100644
--- a/drivers/net/arcnet/rfc1051.c
+++ b/drivers/net/arcnet/rfc1051.c
@@ -34,7 +34,7 @@
 #define VERSION "arcnet: RFC1051 \"simple standard\" (`s') encapsulation 
support loaded.\n"
 
 
-static unsigned short type_trans(struct sk_buff *skb, struct net_device *dev);
+static __be16 type_trans(struct sk_buff *skb, struct net_device *dev);
 static void rx(struct net_device *dev, int bufnum,
               struct archdr *pkthdr, int length);
 static int build_header(struct sk_buff *skb, struct net_device *dev,
@@ -86,7 +86,7 @@ MODULE_LICENSE("GPL");
  * 
  * With ARCnet we have to convert everything to Ethernet-style stuff.
  */
-static unsigned short type_trans(struct sk_buff *skb, struct net_device *dev)
+static __be16 type_trans(struct sk_buff *skb, struct net_device *dev)
 {
        struct arcnet_local *lp = dev->priv;
        struct archdr *pkt = (struct archdr *) skb->data;
diff --git a/drivers/net/arcnet/rfc1201.c b/drivers/net/arcnet/rfc1201.c
index 460a095..6d6d95c 100644
--- a/drivers/net/arcnet/rfc1201.c
+++ b/drivers/net/arcnet/rfc1201.c
@@ -34,7 +34,7 @@ MODULE_LICENSE("GPL");
 #define VERSION "arcnet: RFC1201 \"standard\" (`a') encapsulation support 
loaded.\n"
 
 
-static unsigned short type_trans(struct sk_buff *skb, struct net_device *dev);
+static __be16 type_trans(struct sk_buff *skb, struct net_device *dev);
 static void rx(struct net_device *dev, int bufnum,
               struct archdr *pkthdr, int length);
 static int build_header(struct sk_buff *skb, struct net_device *dev,
@@ -88,7 +88,7 @@ module_exit(arcnet_rfc1201_exit);
  * 
  * With ARCnet we have to convert everything to Ethernet-style stuff.
  */
-static unsigned short type_trans(struct sk_buff *skb, struct net_device *dev)
+static __be16 type_trans(struct sk_buff *skb, struct net_device *dev)
 {
        struct archdr *pkt = (struct archdr *) skb->data;
        struct arc_rfc1201 *soft = &pkt->soft.rfc1201;
@@ -456,7 +456,7 @@ static void load_pkt(struct net_device *dev, struct 
arc_hardware *hard,
 
                excsoft.proto = soft->proto;
                excsoft.split_flag = 0xff;
-               excsoft.sequence = 0xffff;
+               excsoft.sequence = htons(0xffff);
 
                hard->offset[0] = 0;
                ofs = 512 - softlen;
diff --git a/include/linux/arcdevice.h b/include/linux/arcdevice.h
index 2f85049..fde6758 100644
--- a/include/linux/arcdevice.h
+++ b/include/linux/arcdevice.h
@@ -214,7 +214,7 @@ extern struct ArcProto *arc_proto_map[256], 
*arc_proto_default,
  */
 struct Incoming {
        struct sk_buff *skb;    /* packet data buffer             */
-       uint16_t sequence;      /* sequence number of assembly    */
+       __be16 sequence;        /* sequence number of assembly    */
        uint8_t lastpacket,     /* number of last packet (from 1) */
                numpackets;     /* number of packets in split     */
 };
@@ -292,7 +292,7 @@ struct arcnet_local {
 
        struct {
                uint16_t sequence;      /* sequence number (incs with each 
packet) */
-               uint16_t aborted_seq;
+               __be16 aborted_seq;
 
                struct Incoming incoming[256];  /* one from each address */
        } rfc1201;
diff --git a/include/linux/if_arcnet.h b/include/linux/if_arcnet.h
index af380cb..27ea2ac 100644
--- a/include/linux/if_arcnet.h
+++ b/include/linux/if_arcnet.h
@@ -59,7 +59,7 @@ struct arc_rfc1201
 {
     uint8_t  proto;            /* protocol ID field - varies           */
     uint8_t  split_flag;       /* for use with split packets           */
-    uint16_t sequence;         /* sequence number                      */
+    __be16   sequence;         /* sequence number                      */
     uint8_t  payload[0];       /* space remaining in packet (504 bytes)*/
 };
 #define RFC1201_HDR_SIZE 4
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to