From 133331e9314388e78619ed77cc62f6ad04233299 Mon Sep 17 00:00:00 2001 From: Akinobu Mita Date: Thu, 9 Jun 2011 22:28:37 +0900 Subject: [PATCH] unicore32: fix build error for find bitops Signed-off-by: Akinobu Mita --- arch/unicore32/include/asm/bitops.h | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/arch/unicore32/include/asm/bitops.h b/arch/unicore32/include/asm/bitops.h index a9653f0..fb8a29c 100644 --- a/arch/unicore32/include/asm/bitops.h +++ b/arch/unicore32/include/asm/bitops.h @@ -17,6 +17,7 @@ #define _ASM_GENERIC_BITOPS___FLS_H_ #define _ASM_GENERIC_BITOPS_FFS_H_ #define _ASM_GENERIC_BITOPS___FFS_H_ +#define _ASM_GENERIC_BITOPS_FIND_H_ /* * On UNICORE, those functions can be implemented around * the cntlz instruction for much better code efficiency. @@ -36,6 +37,22 @@ static inline int fls(int x) #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); }) #define __ffs(x) (ffs(x) - 1) +extern unsigned long find_next_bit(const unsigned long *addr, unsigned long + size, unsigned long offset); +#define find_next_bit find_next_bit + +extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned + long size, unsigned long offset); +#define find_next_zero_bit find_next_zero_bit + +extern unsigned long find_first_bit(const unsigned long *addr, + unsigned long size); +#define find_first_bit find_first_bit + +extern unsigned long find_first_zero_bit(const unsigned long *addr, + unsigned long size); +#define find_first_zero_bit find_first_zero_bit + #include #endif /* __UNICORE_BITOPS_H__ */ -- 1.7.4.4