diff options
author | Andrew Morton <akpm@digeo.com> | 2003-03-28 03:18:11 -0800 |
---|---|---|
committer | Dave Jones <davej@tetrachloride.(none)> | 2003-03-28 03:18:11 -0800 |
commit | 9d3488a87cb356a740187371e94d86a601a48bd1 (patch) | |
tree | 544ad7e1348aab60ff3642c0c201188710ad32e3 /lib | |
parent | a3fa4e811e89f670cd21ef8f67ad3ccffce14333 (diff) | |
download | history-9d3488a87cb356a740187371e94d86a601a48bd1.tar.gz |
[PATCH] POSIX timers interface long/int cleanup
From: Eric Piel <Eric.Piel@Bull.Net>
Fixes some long/int confusion on 64-bit machines which was causing failures
on ia64 - we end up trying to set bits in the 32-63 range on an int and the
kernel locks up.
Also cleans up idr.h.
George has acked this change.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/idr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/idr.c b/lib/idr.c index 5e2c8f29da46d0..ca4b969e600972 100644 --- a/lib/idr.c +++ b/lib/idr.c @@ -150,7 +150,7 @@ EXPORT_SYMBOL(idr_pre_get); static inline int sub_alloc(struct idr *idp, int shift, void *ptr) { - long n, v = 0; + int n, v = 0; struct idr_layer *p; struct idr_layer **pa[MAX_LEVEL]; struct idr_layer ***paa = &pa[0]; @@ -211,7 +211,7 @@ static inline int sub_alloc(struct idr *idp, int shift, void *ptr) int idr_get_new(struct idr *idp, void *ptr) { - long v; + int v; if (idp->id_free_cnt < idp->layers + 1) return (-1); |