aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/st5481_b.c
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2006-10-03 04:13:55 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-03 11:03:41 -0400
commit17a4506d0eb1f78c9018c06a79e7dd09ae78c3a8 (patch)
tree6d0721b3570cc189300f3c7035d12cfa634183f5 /drivers/isdn/hisax/st5481_b.c
parent31e7e1a806dab5e8e218b78e1b41887a4f6dfcc0 (diff)
[PATCH] ISDN warning fixes
Clean up warnings in drivers/isdn by using long not int for the values where we pass void * and cast to integer types. The code is ok (ok passing the stuff this way isn't pretty but the code is valid). In all the cases I checked out the right thing happens anyway but this removes all the warnings. Signed-off-by: Alan Cox <alan@redhat.com> Cc: Jeff Garzik <jeff@garzik.org> Acked-by: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/hisax/st5481_b.c')
-rw-r--r--drivers/isdn/hisax/st5481_b.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/isdn/hisax/st5481_b.c b/drivers/isdn/hisax/st5481_b.c
index 22fd5db18d48..aca2a3954b14 100644
--- a/drivers/isdn/hisax/st5481_b.c
+++ b/drivers/isdn/hisax/st5481_b.c
@@ -86,7 +86,7 @@ static void usb_b_out(struct st5481_bcs *bcs,int buf_nr)
86 if (!skb->len) { 86 if (!skb->len) {
87 // Frame sent 87 // Frame sent
88 b_out->tx_skb = NULL; 88 b_out->tx_skb = NULL;
89 B_L1L2(bcs, PH_DATA | CONFIRM, (void *) skb->truesize); 89 B_L1L2(bcs, PH_DATA | CONFIRM, (void *)(unsigned long) skb->truesize);
90 dev_kfree_skb_any(skb); 90 dev_kfree_skb_any(skb);
91 91
92/* if (!(bcs->tx_skb = skb_dequeue(&bcs->sq))) { */ 92/* if (!(bcs->tx_skb = skb_dequeue(&bcs->sq))) { */
@@ -350,7 +350,7 @@ void st5481_b_l2l1(struct hisax_if *ifc, int pr, void *arg)
350{ 350{
351 struct st5481_bcs *bcs = ifc->priv; 351 struct st5481_bcs *bcs = ifc->priv;
352 struct sk_buff *skb = arg; 352 struct sk_buff *skb = arg;
353 int mode; 353 long mode;
354 354
355 DBG(4, ""); 355 DBG(4, "");
356 356
@@ -360,8 +360,8 @@ void st5481_b_l2l1(struct hisax_if *ifc, int pr, void *arg)
360 bcs->b_out.tx_skb = skb; 360 bcs->b_out.tx_skb = skb;
361 break; 361 break;
362 case PH_ACTIVATE | REQUEST: 362 case PH_ACTIVATE | REQUEST:
363 mode = (int) arg; 363 mode = (long) arg;
364 DBG(4,"B%d,PH_ACTIVATE_REQUEST %d", bcs->channel + 1, mode); 364 DBG(4,"B%d,PH_ACTIVATE_REQUEST %ld", bcs->channel + 1, mode);
365 st5481B_mode(bcs, mode); 365 st5481B_mode(bcs, mode);
366 B_L1L2(bcs, PH_ACTIVATE | INDICATION, NULL); 366 B_L1L2(bcs, PH_ACTIVATE | INDICATION, NULL);
367 break; 367 break;