bitops: remove duplicated extern declarations
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 29 Sep 2010 09:08:51 +0000 (18:08 +0900)
committerArnd Bergmann <arnd@arndb.de>
Sat, 9 Oct 2010 19:51:45 +0000 (21:51 +0200)
commitd852a6afd91fc928128f59ebff381838c365e358
tree6afd5cb76ab2288457c56a6a458bb928cb081031
parent708ff2a0097b02d32d375b66996661f36cd4d6d1
bitops: remove duplicated extern declarations

If CONFIG_GENERIC_FIND_NEXT_BIT is enabled, find_next_bit() and
find_next_zero_bit() are doubly declared in asm-generic/bitops/find.h
and linux/bitops.h.

asm/bitops.h includes asm-generic/bitops/find.h if and only if the
architecture enables CONFIG_GENERIC_FIND_NEXT_BIT. And asm/bitops.h
is included by linux/bitops.h

So we can just remove the extern declarations of find_next_bit() and
find_next_zero_bit() in linux/bitops.h.

Also we can remove unneeded #ifndef CONFIG_GENERIC_FIND_NEXT_BIT in
asm-generic/bitops/find.h.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/bitops/find.h
include/linux/bitops.h