summaryrefslogtreecommitdiff
path: root/kern/bitmap.h
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.h
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.h')
-rw-r--r--kern/bitmap.h12
1 files changed, 6 insertions, 6 deletions
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);