ARM: 8679/1: bitops: Align prototypes to generic API
authorMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Tue, 30 May 2017 15:41:31 +0000 (16:41 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sun, 18 Jun 2017 21:36:33 +0000 (22:36 +0100)
commit2d618fee6984c5124f8e66972df5b1262ac7836e
tree551ecb97f7355e331e11df9fcfe47b53eca810cc
parent620176f335017fbfcbc79d26a8c9beb6e64f4868
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>
arch/arm/include/asm/bitops.h