From f7dd911ee2c78b9fc856e88afae8edc101b25844 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Thu, 15 Jun 2017 22:15:31 +0200 Subject: kern/bitmap: make bitmap_lookup conform to coding rules Macros with lower case names must have a function-like interface. --- kern/bitmap.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kern/bitmap.h') diff --git a/kern/bitmap.h b/kern/bitmap.h index c206944a..9a3d7a0b 100644 --- a/kern/bitmap.h +++ b/kern/bitmap.h @@ -65,7 +65,7 @@ static inline void bitmap_set(unsigned long *bm, int bit) { if (bit >= LONG_BIT) { - bitmap_lookup(bm, bit); + bitmap_lookup(&bm, &bit); } *bm |= bitmap_mask(bit); @@ -75,7 +75,7 @@ static inline void bitmap_set_atomic(unsigned long *bm, int bit) { if (bit >= LONG_BIT) { - bitmap_lookup(bm, bit); + bitmap_lookup(&bm, &bit); } atomic_or(bm, bitmap_mask(bit), ATOMIC_RELEASE); @@ -85,7 +85,7 @@ static inline void bitmap_clear(unsigned long *bm, int bit) { if (bit >= LONG_BIT) { - bitmap_lookup(bm, bit); + bitmap_lookup(&bm, &bit); } *bm &= ~bitmap_mask(bit); @@ -95,7 +95,7 @@ static inline void bitmap_clear_atomic(unsigned long *bm, int bit) { if (bit >= LONG_BIT) { - bitmap_lookup(bm, bit); + bitmap_lookup(&bm, &bit); } atomic_and(bm, ~bitmap_mask(bit), ATOMIC_RELEASE); @@ -105,7 +105,7 @@ static inline int bitmap_test(const unsigned long *bm, int bit) { if (bit >= LONG_BIT) { - bitmap_lookup(bm, bit); + bitmap_lookup(&bm, &bit); } return ((*bm & bitmap_mask(bit)) != 0); @@ -115,7 +115,7 @@ static inline int bitmap_test_atomic(const unsigned long *bm, int bit) { if (bit >= LONG_BIT) { - bitmap_lookup(bm, bit); + bitmap_lookup(&bm, &bit); } return ((atomic_load(bm, ATOMIC_ACQUIRE) & bitmap_mask(bit)) != 0); -- cgit v1.2.3