summaryrefslogtreecommitdiff
path: root/kern/bitmap.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-15 22:15:31 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-15 22:15:57 +0200
commitf7dd911ee2c78b9fc856e88afae8edc101b25844 (patch)
treebd77950260592533505299799f9f81936efeb47b /kern/bitmap.c
parent2f3d23605b841f9e4f4c0a13c69a9ff2db033903 (diff)
kern/bitmap: make bitmap_lookup conform to coding rules
Macros with lower case names must have a function-like interface.
Diffstat (limited to 'kern/bitmap.c')
-rw-r--r--kern/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/bitmap.c b/kern/bitmap.c
index 0e13ef55..97e497d6 100644
--- a/kern/bitmap.c
+++ b/kern/bitmap.c
@@ -78,7 +78,7 @@ bitmap_find_next_bit(const unsigned long *bm, int nr_bits, int bit,
end = bm + BITMAP_LONGS(nr_bits);
if (bit >= LONG_BIT) {
- bitmap_lookup(bm, bit);
+ bitmap_lookup(&bm, &bit);
nr_bits -= ((bm - start) * LONG_BIT);
}