aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Gonzalez <marc_gonzalez@sigmadesigns.com>2017-05-30 11:41:31 -0400
committerRussell King <rmk+kernel@armlinux.org.uk>2017-06-18 17:36:33 -0400
commit2d618fee6984c5124f8e66972df5b1262ac7836e (patch)
tree551ecb97f7355e331e11df9fcfe47b53eca810cc
parent620176f335017fbfcbc79d26a8c9beb6e64f4868 (diff)
ARM: 8679/1: bitops: Align prototypes to generic API
include/asm-generic/bitops/find.h declares: extern unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size); while arch/arm/include/asm/bitops.h declares: #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) extern int _find_first_zero_bit_le(const void * p, unsigned size); Align the arm prototypes to the generic API, to have gcc report inadequate arguments, such as pointer to u32. Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--arch/arm/include/asm/bitops.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h
index e943e6cee254..f308c8c40cb9 100644
--- a/arch/arm/include/asm/bitops.h
+++ b/arch/arm/include/asm/bitops.h
@@ -159,16 +159,16 @@ extern int _test_and_change_bit(int nr, volatile unsigned long * p);
159/* 159/*
160 * Little endian assembly bitops. nr = 0 -> byte 0 bit 0. 160 * Little endian assembly bitops. nr = 0 -> byte 0 bit 0.
161 */ 161 */
162extern int _find_first_zero_bit_le(const void * p, unsigned size); 162extern int _find_first_zero_bit_le(const unsigned long *p, unsigned size);
163extern int _find_next_zero_bit_le(const void * p, int size, int offset); 163extern int _find_next_zero_bit_le(const unsigned long *p, int size, int offset);
164extern int _find_first_bit_le(const unsigned long *p, unsigned size); 164extern int _find_first_bit_le(const unsigned long *p, unsigned size);
165extern int _find_next_bit_le(const unsigned long *p, int size, int offset); 165extern int _find_next_bit_le(const unsigned long *p, int size, int offset);
166 166
167/* 167/*
168 * Big endian assembly bitops. nr = 0 -> byte 3 bit 0. 168 * Big endian assembly bitops. nr = 0 -> byte 3 bit 0.
169 */ 169 */
170extern int _find_first_zero_bit_be(const void * p, unsigned size); 170extern int _find_first_zero_bit_be(const unsigned long *p, unsigned size);
171extern int _find_next_zero_bit_be(const void * p, int size, int offset); 171extern int _find_next_zero_bit_be(const unsigned long *p, int size, int offset);
172extern int _find_first_bit_be(const unsigned long *p, unsigned size); 172extern int _find_first_bit_be(const unsigned long *p, unsigned size);
173extern int _find_next_bit_be(const unsigned long *p, int size, int offset); 173extern int _find_next_bit_be(const unsigned long *p, int size, int offset);
174 174