Skip to contentSkip to conversation

test_bit: Add some more functions to test.

PATCH Applied Christophe JAILLET 2 participants 2 messages May 21, 2022 – May 23, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test_bit: Add some more functions to test.

change_bit() and co. were missing.
__<function_name> were missing as well.

---
 check_test_bit.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
check_test_bit.c +11 -1
index b09139aa89bb..71f7aed06c08 100644
@@ -47,8 +47,18 @@ void check_test_bit(int id)
 
 	add_function_hook("test_bit", &match_test_bit, NULL);
 	add_function_hook("variable_test_bit", &match_test_bit, NULL);
+
 	add_function_hook("set_bit", &match_test_bit, NULL);
 	add_function_hook("clear_bit", &match_test_bit, NULL);
-	add_function_hook("test_and_clear_bit", &match_test_bit, NULL);
+	add_function_hook("change_bit", &match_test_bit, NULL);
+	add_function_hook("__set_bit", &match_test_bit, NULL);
+	add_function_hook("__clear_bit", &match_test_bit, NULL);
+	add_function_hook("__change_bit", &match_test_bit, NULL);
+
 	add_function_hook("test_and_set_bit", &match_test_bit, NULL);
+	add_function_hook("test_and_clear_bit", &match_test_bit, NULL);
+	add_function_hook("test_and_change_bit", &match_test_bit, NULL);
+	add_function_hook("__test_and_set_bit", &match_test_bit, NULL);
+	add_function_hook("__test_and_clear_bit", &match_test_bit, NULL);
+	add_function_hook("__test_and_change_bit", &match_test_bit, NULL);
 }
Signature · 1 line
2.34.1
#1 lore raw
Quoted 5 lines · Christophe JAILLET

change_bit() and co. were missing.
__<function_name> were missing as well.

---

Thanks, Applied. Btw, I also applied the one you sent earlier "Report the correct function name that triggered the warning".

regards,
dan carpenter