diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-10-03 04:13:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:03:41 -0400 |
commit | 17a4506d0eb1f78c9018c06a79e7dd09ae78c3a8 (patch) | |
tree | 6d0721b3570cc189300f3c7035d12cfa634183f5 /drivers/isdn/hisax/config.c | |
parent | 31e7e1a806dab5e8e218b78e1b41887a4f6dfcc0 (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/config.c')
-rw-r--r-- | drivers/isdn/hisax/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c index e10350360f2f..e4823ab2b127 100644 --- a/drivers/isdn/hisax/config.c +++ b/drivers/isdn/hisax/config.c | |||
@@ -1721,11 +1721,11 @@ static void hisax_b_l1l2(struct hisax_if *ifc, int pr, void *arg) | |||
1721 | hisax_b_sched_event(bcs, B_RCVBUFREADY); | 1721 | hisax_b_sched_event(bcs, B_RCVBUFREADY); |
1722 | break; | 1722 | break; |
1723 | case PH_DATA | CONFIRM: | 1723 | case PH_DATA | CONFIRM: |
1724 | bcs->tx_cnt -= (int) arg; | 1724 | bcs->tx_cnt -= (long)arg; |
1725 | if (test_bit(FLG_LLI_L1WAKEUP,&bcs->st->lli.flag)) { | 1725 | if (test_bit(FLG_LLI_L1WAKEUP,&bcs->st->lli.flag)) { |
1726 | u_long flags; | 1726 | u_long flags; |
1727 | spin_lock_irqsave(&bcs->aclock, flags); | 1727 | spin_lock_irqsave(&bcs->aclock, flags); |
1728 | bcs->ackcnt += (int) arg; | 1728 | bcs->ackcnt += (long)arg; |
1729 | spin_unlock_irqrestore(&bcs->aclock, flags); | 1729 | spin_unlock_irqrestore(&bcs->aclock, flags); |
1730 | schedule_event(bcs, B_ACKPENDING); | 1730 | schedule_event(bcs, B_ACKPENDING); |
1731 | } | 1731 | } |
@@ -1789,7 +1789,7 @@ static void hisax_b_l2l1(struct PStack *st, int pr, void *arg) | |||
1789 | 1789 | ||
1790 | switch (pr) { | 1790 | switch (pr) { |
1791 | case PH_ACTIVATE | REQUEST: | 1791 | case PH_ACTIVATE | REQUEST: |
1792 | B_L2L1(b_if, pr, (void *) st->l1.mode); | 1792 | B_L2L1(b_if, pr, (void *)(unsigned long)st->l1.mode); |
1793 | break; | 1793 | break; |
1794 | case PH_DATA | REQUEST: | 1794 | case PH_DATA | REQUEST: |
1795 | case PH_PULL | INDICATION: | 1795 | case PH_PULL | INDICATION: |