Skip to content

Commit

Permalink
[POWERPC] Use asm-generic/bitops/find.h in bitops.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander van Heukelum authored and Paul Mackerras committed Apr 18, 2008
1 parent 11a55f2 commit 47b9d9b
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions include/asm-powerpc/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 47b9d9b

Please sign in to comment.