netdev
[Top] [All Lists]

[PATCH 2/6][ATM]: [zatm] fix sparse warning

To: netdev@xxxxxxxxxxx
Subject: [PATCH 2/6][ATM]: [zatm] fix sparse warning
From: "chas williams - CONTRACTOR" <chas@xxxxxxxxxxxxxxxx>
Date: Tue, 22 Mar 2005 19:54:43 -0500
Cc: davem@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
please apply to 2.6 -- thanks!

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/03/22 09:55:38-05:00 chas@xxxxxxxxxxxxxxxxxxxxxx 
#   [ATM]: [zatm] fix sparse warning
#   
#   Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxx>
#   Signed-off-by: Domen Puncer <domen@xxxxxxxxxxxx>
#   Signed-off-by: Chas Williams <chas@xxxxxxxxxxxxxxxx>
# 
# drivers/atm/zatm.c
#   2005/03/22 09:55:19-05:00 chas@xxxxxxxxxxxxxxxxxxxxxx +1 -1
#   [ATM]: [zatm] fix sparse warning
#   
#   Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxx>
#   Signed-off-by: Domen Puncer <domen@xxxxxxxxxxxx>
#   Signed-off-by: Chas Williams <chas@xxxxxxxxxxxxxxxx>
# 
diff -Nru a/drivers/atm/zatm.c b/drivers/atm/zatm.c
--- a/drivers/atm/zatm.c        2005-03-22 19:50:21 -05:00
+++ b/drivers/atm/zatm.c        2005-03-22 19:50:21 -05:00
@@ -411,7 +411,7 @@
 #if 0
 printk("dummy: 0x%08lx, 0x%08lx\n",dummy[0],dummy[1]);
 #endif
-               size = error ? 0 : ntohs(((u16 *) skb->data)[cells*
+               size = error ? 0 : ntohs(((__be16 *) skb->data)[cells*
                    ATM_CELL_PAYLOAD/sizeof(u16)-3]);
                EVENT("got skb 0x%lx, size %d\n",(unsigned long) skb,size);
                chan = (here[3] & uPD98401_AAL5_CHAN) >>

<Prev in Thread] Current Thread [Next in Thread>