diff options
author | Alexander van Heukelum <heukelum@mailshack.com> | 2008-04-16 15:55:08 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-18 14:03:30 +1000 |
commit | 47b9d9bddf1877187d965f4dd4d7d454d8cdb50c (patch) | |
tree | 9892cdd1d82d89bfd5400d8d048ed2d4e98ad473 /include/asm-powerpc | |
parent | 11a55f2274bf0d719e4dd05f4ac5e89a15740211 (diff) | |
download | op-kernel-dev-47b9d9bddf1877187d965f4dd4d7d454d8cdb50c.zip op-kernel-dev-47b9d9bddf1877187d965f4dd4d7d454d8cdb50c.tar.gz |
[POWERPC] Use asm-generic/bitops/find.h in bitops.h
Powerpc and ppc have some code in their bitops.h that is exactly the
same as asm-generic/bitops/find.h. Include this header instead of the
private implementation.
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/bitops.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/include/asm-powerpc/bitops.h b/include/asm-powerpc/bitops.h index 220d9a7..36c8f3a 100644 --- a/include/asm-powerpc/bitops.h +++ b/include/asm-powerpc/bitops.h @@ -313,23 +313,8 @@ static __inline__ int fls(unsigned int x) return 32 - lz; } #include <asm-generic/bitops/fls64.h> - #include <asm-generic/bitops/hweight.h> - -#define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0) -unsigned long find_next_zero_bit(const unsigned long *addr, - unsigned long size, unsigned long offset); -/** - * find_first_bit - find the first set bit in a memory region - * @addr: The address to start the search at - * @size: The maximum size to search - * - * Returns the bit-number of the first set bit, not the number of the byte - * containing a bit. - */ -#define find_first_bit(addr, size) find_next_bit((addr), (size), 0) -unsigned long find_next_bit(const unsigned long *addr, - unsigned long size, unsigned long offset); +#include <asm-generic/bitops/find.h> /* Little-endian versions */ |