Message ID | 20230505080207.11902-4-ben.dooks@sifive.com |
---|---|
State | Accepted |
Commit | 661e2215f8483cc7a77badeab6dcbf6a88cc715c |
Delegated to: | Andes |
Headers | show |
Series | [1/3] riscv: add generic link for <asm/atomic.h> | expand |
On Fri, May 05, 2023 at 09:02:07AM +0100, Ben Dooks wrote: > These seem to be missing, and trying to build ubifs without them > is causing errors due to these being missing. > > Signed-off-by: Ben Dooks <ben.dooks@sifive.com> > --- > arch/riscv/include/asm/bitops.h | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
diff --git a/arch/riscv/include/asm/bitops.h b/arch/riscv/include/asm/bitops.h index 536629bbec..35f1368b83 100644 --- a/arch/riscv/include/asm/bitops.h +++ b/arch/riscv/include/asm/bitops.h @@ -158,6 +158,9 @@ static inline unsigned long ffz(unsigned long word) #define hweight16(x) generic_hweight16(x) #define hweight8(x) generic_hweight8(x) +#define test_and_set_bit __test_and_set_bit +#define test_and_clear_bit __test_and_clear_bit + #define ext2_set_bit test_and_set_bit #define ext2_clear_bit test_and_clear_bit #define ext2_test_bit test_bit
These seem to be missing, and trying to build ubifs without them is causing errors due to these being missing. Signed-off-by: Ben Dooks <ben.dooks@sifive.com> --- arch/riscv/include/asm/bitops.h | 3 +++ 1 file changed, 3 insertions(+)