diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-02-01 06:06:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-01 11:53:21 -0500 |
commit | a1320ae31b40df06fd7deec94b5369a11b0ec25c (patch) | |
tree | 4b89ddf191dd3c139f558897c8a8c75919aeba72 | |
parent | c5e3d98c5666c2533e67fb35dc5ad5de47db8aae (diff) |
[PATCH] arm26: fix find_first_zero_bit related warnings
include/linux/nodemask.h: In function `__first_unset_node':
include/linux/nodemask.h:254: warning: passing arg 1 of `_find_first_zero_bit_le' discards qualifiers from pointer target type
fs/minix/bitmap.c: In function `minix_new_block':
fs/minix/bitmap.c:89: warning: passing arg 1 of `_find_first_zero_bit_le' from incompatible pointer type
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Ian Molton <spyro@f2s.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/asm-arm26/bitops.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-arm26/bitops.h b/include/asm-arm26/bitops.h index 15cc6f2da792..d87f8634e625 100644 --- a/include/asm-arm26/bitops.h +++ b/include/asm-arm26/bitops.h | |||
@@ -186,7 +186,7 @@ extern void _change_bit_le(int nr, volatile unsigned long * p); | |||
186 | extern int _test_and_set_bit_le(int nr, volatile unsigned long * p); | 186 | extern int _test_and_set_bit_le(int nr, volatile unsigned long * p); |
187 | extern int _test_and_clear_bit_le(int nr, volatile unsigned long * p); | 187 | extern int _test_and_clear_bit_le(int nr, volatile unsigned long * p); |
188 | extern int _test_and_change_bit_le(int nr, volatile unsigned long * p); | 188 | extern int _test_and_change_bit_le(int nr, volatile unsigned long * p); |
189 | extern int _find_first_zero_bit_le(void * p, unsigned size); | 189 | extern int _find_first_zero_bit_le(const unsigned long * p, unsigned size); |
190 | extern int _find_next_zero_bit_le(void * p, int size, int offset); | 190 | extern int _find_next_zero_bit_le(void * p, int size, int offset); |
191 | extern int _find_first_bit_le(const unsigned long *p, unsigned size); | 191 | extern int _find_first_bit_le(const unsigned long *p, unsigned size); |
192 | extern int _find_next_bit_le(const unsigned long *p, int size, int offset); | 192 | extern int _find_next_bit_le(const unsigned long *p, int size, int offset); |
@@ -326,7 +326,7 @@ static inline int sched_find_first_bit(unsigned long *b) | |||
326 | #define minix_test_and_clear_bit(nr,p) \ | 326 | #define minix_test_and_clear_bit(nr,p) \ |
327 | __test_and_clear_bit(WORD_BITOFF_TO_LE(nr), (unsigned long *)(p)) | 327 | __test_and_clear_bit(WORD_BITOFF_TO_LE(nr), (unsigned long *)(p)) |
328 | #define minix_find_first_zero_bit(p,sz) \ | 328 | #define minix_find_first_zero_bit(p,sz) \ |
329 | _find_first_zero_bit_le(p,sz) | 329 | _find_first_zero_bit_le((unsigned long *)(p),sz) |
330 | 330 | ||
331 | #endif /* __KERNEL__ */ | 331 | #endif /* __KERNEL__ */ |
332 | 332 | ||