Skip to content
Snippets Groups Projects
Commit 661e2215 authored by Ben Dooks's avatar Ben Dooks Committed by Leo Yu-Chi Liang
Browse files

riscv: define test_and_{set,clear}_bit in asm/bitops.h


These seem to be missing, and trying to build ubifs without them
is causing errors due to these being missing.

Signed-off-by: default avatarBen Dooks <ben.dooks@sifive.com>
Reviewed-by: default avatarLeo Yu-Chi Liang <ycliang@andestech.com>
parent 551de216
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment