diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-02-18 05:31:43 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-18 05:31:43 -0800 |
| commit | 12a7558cb0f47338a4dad41fd432e405c8a70bc2 (patch) | |
| tree | 082a361d32c9dc5257c1c3a1c3079d12cea1e12e /include | |
| parent | a1861dbf7d0232b9dfceefdabf09f849c67db7d4 (diff) | |
[PATCH] lib/idr.c 64-bit fixes
Various overflow problems compiling the lib/idr.c code for ppc64
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/idr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/idr.h b/include/linux/idr.h index 40861ba1114c..4995cb68a0fa 100644 --- a/include/linux/idr.h +++ b/include/linux/idr.h @@ -28,7 +28,7 @@ /* Leave the possibility of an incomplete final layer */ #define MAX_LEVEL (BITS_PER_LONG - RESERVED_ID_BITS + IDR_BITS - 1) / IDR_BITS #define MAX_ID_SHIFT (BITS_PER_LONG - RESERVED_ID_BITS) -#define MAX_ID_BIT (1 << MAX_ID_SHIFT) +#define MAX_ID_BIT (1L << MAX_ID_SHIFT) #define MAX_ID_MASK (MAX_ID_BIT - 1) /* Number of id_layer structs to leave in free list */ @@ -43,7 +43,7 @@ struct idr_layer { struct idr { struct idr_layer *top; int layers; - int count; + long count; struct idr_layer *id_free; int id_free_cnt; spinlock_t lock; |
