Skip to content

Commit

Permalink
cxgb3: trivial endianness annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Al Viro authored and David S. Miller committed Oct 10, 2007
1 parent bd7eb1c commit fb8e444
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions drivers/net/cxgb3/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions drivers/net/cxgb3/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ enum {
};

struct tx_desc {
u64 flit[TX_DESC_FLITS];
__be64 flit[TX_DESC_FLITS];
};

struct rx_desc {
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit fb8e444

Please sign in to comment.