Smatch (Semantic Matching Tool) development
 help / color / mirror / Atom feed
* [PATCH] test_bit: Add some more functions to test.
@ 2022-05-21  9:58 Christophe JAILLET
  2022-05-23 12:13 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2022-05-21  9:58 UTC (permalink / raw)
  To: smatch; +Cc: Christophe JAILLET

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

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 check_test_bit.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/check_test_bit.c b/check_test_bit.c
index b09139aa89bb..71f7aed06c08 100644
--- a/check_test_bit.c
+++ b/check_test_bit.c
@@ -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);
 }
-- 
2.34.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-23 12:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-21  9:58 [PATCH] test_bit: Add some more functions to test Christophe JAILLET
2022-05-23 12:13 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox