diff options
Diffstat (limited to 'kern/bitmap.c')
-rw-r--r-- | kern/bitmap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kern/bitmap.c b/kern/bitmap.c index 7406c7ef..849d3092 100644 --- a/kern/bitmap.c +++ b/kern/bitmap.c @@ -19,15 +19,17 @@ #include <kern/limits.h> int -bitmap_find_next_bit(unsigned long *bm, int nr_bits, int bit, int complement) +bitmap_find_next_bit(const unsigned long *bm, int nr_bits, int bit, + int complement) { - unsigned long word, *start, *end; + const unsigned long *start, *end; + unsigned long word; start = bm; end = bm + BITMAP_LONGS(nr_bits); if (bit >= LONG_BIT) - bitmap_lookup(&bm, &bit); + bitmap_lookup(bm, bit); word = *bm; |