]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: define test_and_{set,clear}_bit in asm/bitops.h
authorBen Dooks <ben.dooks@sifive.com>
Fri, 5 May 2023 08:02:07 +0000 (09:02 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 6 Jul 2023 09:28:08 +0000 (17:28 +0800)
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>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/include/asm/bitops.h

index 536629bbecb3571322fc679d8ef7972d6013db34..35f1368b837a5202b2747d71c0b01a592d868fc4 100644 (file)
@@ -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