cxgb3: trivial endianness annotations
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 23 Aug 2007 07:04:12 +0000 (03:04 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:52:06 +0000 (16:52 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/cxgb3/common.h
drivers/net/cxgb3/sge.c

index 3e5b0db7784eafd3df62977ef81616020754e480..99c75d30f67a8538ddd921646666d39d53901295 100644 (file)
@@ -168,8 +168,8 @@ enum {
 };
 
 struct sg_ent {                        /* SGE scatter/gather entry */
-       u32 len[2];
-       u64 addr[2];
+       __be32 len[2];
+       __be64 addr[2];
 };
 
 #ifndef SGE_NUM_GENBITS
index 540ce5fa1d3216e34f672d23b7deed653a11fc8f..77f3ec5ff8a7cef200a9c6a640abdf0ee15eb6ac 100644 (file)
@@ -79,7 +79,7 @@ enum {
 };
 
 struct tx_desc {
-       u64 flit[TX_DESC_FLITS];
+       __be64 flit[TX_DESC_FLITS];
 };
 
 struct rx_desc {
@@ -904,8 +904,8 @@ static void write_wr_hdr_sgl(unsigned int ndesc, struct sk_buff *skb,
                             const struct sge_txq *q,
                             const struct sg_ent *sgl,
                             unsigned int flits, unsigned int sgl_flits,
-                            unsigned int gen, unsigned int wr_hi,
-                            unsigned int wr_lo)
+                            unsigned int gen, __be32 wr_hi,
+                            __be32 wr_lo)
 {
        struct work_request_hdr *wrp = (struct work_request_hdr *)d;
        struct tx_sw_desc *sd = &q->sdesc[pidx];