aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/s2io.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-11-05 23:40:46 -0500
committerJeff Garzik <jgarzik@pobox.com>2005-11-05 23:40:46 -0500
commit50eb80068001871339d04b749fb9b198428b56d2 (patch)
treef3e5f491e35da275be5af3a2d567af564827b33c /drivers/net/s2io.c
parentecf8b596cf636c14896841625d552e148585ad07 (diff)
downloadkernel_samsung_tuna-50eb80068001871339d04b749fb9b198428b56d2.zip
kernel_samsung_tuna-50eb80068001871339d04b749fb9b198428b56d2.tar.gz
kernel_samsung_tuna-50eb80068001871339d04b749fb9b198428b56d2.tar.bz2
[netdrvr s2io] warning fixes
From Andrew Morton.
Diffstat (limited to 'drivers/net/s2io.c')
-rw-r--r--drivers/net/s2io.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index 9c49354..0745dd9 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -2110,7 +2110,7 @@ int fill_rxd_3buf(nic_t *nic, RxD_t *rxdp, struct sk_buff *skb)
{
struct net_device *dev = nic->dev;
struct sk_buff *frag_list;
- u64 tmp;
+ void *tmp;
/* Buffer-1 receives L3/L4 headers */
((RxD3_t*)rxdp)->Buffer1_ptr = pci_map_single
@@ -2125,11 +2125,9 @@ int fill_rxd_3buf(nic_t *nic, RxD_t *rxdp, struct sk_buff *skb)
}
frag_list = skb_shinfo(skb)->frag_list;
frag_list->next = NULL;
- tmp = (u64) frag_list->data;
- tmp += ALIGN_SIZE;
- tmp &= ~ALIGN_SIZE;
- frag_list->data = (void *) tmp;
- frag_list->tail = (void *) tmp;
+ tmp = (void *)ALIGN((long)frag_list->data, ALIGN_SIZE + 1);
+ frag_list->data = tmp;
+ frag_list->tail = tmp;
/* Buffer-2 receives L4 data payload */
((RxD3_t*)rxdp)->Buffer2_ptr = pci_map_single(nic->pdev,