diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-02-09 16:40:10 +0000 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-09 09:14:08 -0800 |
commit | b53449725a9a436fb9cc2f2ef8579368a704db03 (patch) | |
tree | 53eb73c37a84588012d6d9a1012a4e1c0dce9aa9 | |
parent | 184123dbd6629ef32e9fe4749163701e86f2b02c (diff) | |
download | op-kernel-dev-b53449725a9a436fb9cc2f2ef8579368a704db03.zip op-kernel-dev-b53449725a9a436fb9cc2f2ef8579368a704db03.tar.gz |
[PATCH] trivial cxgb3 annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/net/cxgb3/cxgb3_offload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/cxgb3/cxgb3_offload.c b/drivers/net/cxgb3/cxgb3_offload.c index c3a02d6..c6b7266 100644 --- a/drivers/net/cxgb3/cxgb3_offload.c +++ b/drivers/net/cxgb3/cxgb3_offload.c @@ -396,7 +396,7 @@ static int rx_offload_blackhole(struct t3cdev *dev, struct sk_buff **skbs, int n) { CH_ERR(tdev2adap(dev), "%d unexpected offload packets, first data %u\n", - n, ntohl(*(u32 *)skbs[0]->data)); + n, ntohl(*(__be32 *)skbs[0]->data)); while (n--) dev_kfree_skb_any(skbs[n]); return 0; @@ -755,7 +755,7 @@ static int do_trace(struct t3cdev *dev, struct sk_buff *skb) { struct cpl_trace_pkt *p = cplhdr(skb); - skb->protocol = 0xffff; + skb->protocol = htons(0xffff); skb->dev = dev->lldev; skb_pull(skb, sizeof(*p)); skb->mac.raw = skb->data; |