Skip to contentSkip to conversation

kunit: Fix kunit_register_params_array() reference in kernel-doc

PATCH New Karl Mehltretter 1 participant 1 message Sep 11

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kunit: Fix kunit_register_params_array() reference in kernel-doc

The kernel-doc comment of KUNIT_CASE_PARAM_WITH_INIT() refers to kunit_register_param_array, which does not exist. The name is kunit_register_params_array. Say kunit_register_params_array.

Fixes b820b9077b7f ("kunit: Enable direct registration of parameter arrays to a KUnit test")
Assisted-by LLM
---
 include/kunit/test.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/kunit/test.h +1 -1
index da5312e0dfa57f37a7e96c9e618b03b0947ede8b..55548dc54444f8c9f9e9319fbc263d93c0a56093 100644
@@ -239,7 +239,7 @@ static inline char *kunit_status_to_ok_not_ok(enum kunit_status status)
  * that were not managed by the parameterized test, and any other teardown logic.
  *
  * Note: If you are registering a parameter array in param_init() with
- * kunit_register_param_array() then you need to pass kunit_array_gen_params()
+ * kunit_register_params_array() then you need to pass kunit_array_gen_params()
  * to this as the generator function.
  */
 #define KUNIT_CASE_PARAM_WITH_INIT(test_name, gen_params, init, exit)		\