diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-02-20 16:58:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-20 20:10:15 -0500 |
commit | 96c62d51cc5a3ea31ddef606544f014922591a64 (patch) | |
tree | 1392be5322a0f4e9ebee0fc9cd9c1d215e93709f /lib/genalloc.c | |
parent | 2be3c79046cf90d75d436708a4e0898c7a1f9d51 (diff) |
[PATCH] genalloc warning fixes
lib/genalloc.c: In function 'gen_pool_alloc':
lib/genalloc.c:151: warning: passing argument 2 of '__set_bit' from incompatible pointer type
lib/genalloc.c: In function 'gen_pool_free':
lib/genalloc.c:190: warning: passing argument 2 of '__clear_bit' from incompatible pointer type
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/genalloc.c')
-rw-r--r-- | lib/genalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/genalloc.c b/lib/genalloc.c index 75ae68ce03e1..eb7c2bab9ebf 100644 --- a/lib/genalloc.c +++ b/lib/genalloc.c | |||
@@ -148,7 +148,7 @@ unsigned long gen_pool_alloc(struct gen_pool *pool, size_t size) | |||
148 | addr = chunk->start_addr + | 148 | addr = chunk->start_addr + |
149 | ((unsigned long)start_bit << order); | 149 | ((unsigned long)start_bit << order); |
150 | while (nbits--) | 150 | while (nbits--) |
151 | __set_bit(start_bit++, &chunk->bits); | 151 | __set_bit(start_bit++, chunk->bits); |
152 | spin_unlock_irqrestore(&chunk->lock, flags); | 152 | spin_unlock_irqrestore(&chunk->lock, flags); |
153 | read_unlock(&pool->lock); | 153 | read_unlock(&pool->lock); |
154 | return addr; | 154 | return addr; |
@@ -187,7 +187,7 @@ void gen_pool_free(struct gen_pool *pool, unsigned long addr, size_t size) | |||
187 | spin_lock_irqsave(&chunk->lock, flags); | 187 | spin_lock_irqsave(&chunk->lock, flags); |
188 | bit = (addr - chunk->start_addr) >> order; | 188 | bit = (addr - chunk->start_addr) >> order; |
189 | while (nbits--) | 189 | while (nbits--) |
190 | __clear_bit(bit++, &chunk->bits); | 190 | __clear_bit(bit++, chunk->bits); |
191 | spin_unlock_irqrestore(&chunk->lock, flags); | 191 | spin_unlock_irqrestore(&chunk->lock, flags); |
192 | break; | 192 | break; |
193 | } | 193 | } |