* [PATCH] kselftest: fix doc for ksft_test_result_report()
@ 2026-05-05 18:22 Woradorn Laodhanadhaworn
2026-05-05 18:41 ` Shuah Khan
0 siblings, 1 reply; 2+ messages in thread
From: Woradorn Laodhanadhaworn @ 2026-05-05 18:22 UTC (permalink / raw)
To: shuah
Cc: broonie, skhan, linux-kselftest, linux-kernel,
linux-kernel-mentees, woradorn.laon
Fix documentation to reference ksft_test_result_report() instead of
ksft_test_result().
Signed-off-by: Woradorn Laodhanadhaworn <woradorn.laon@gmail.com>
---
tools/testing/selftests/kselftest.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h
index 6d809f08ab7b..b50a8478d4d3 100644
--- a/tools/testing/selftests/kselftest.h
+++ b/tools/testing/selftests/kselftest.h
@@ -346,9 +346,9 @@ void ksft_test_result_code(int exit_code, const char *test_name,
}
/**
- * ksft_test_result() - Report test success based on truth of condition
+ * ksft_test_result_report() - Report test result based on a kselftest exit code
*
- * @condition: if true, report test success, otherwise failure.
+ * @result: a kselftest exit code
*/
#define ksft_test_result_report(result, fmt, ...) do { \
switch (result) { \
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kselftest: fix doc for ksft_test_result_report()
2026-05-05 18:22 [PATCH] kselftest: fix doc for ksft_test_result_report() Woradorn Laodhanadhaworn
@ 2026-05-05 18:41 ` Shuah Khan
0 siblings, 0 replies; 2+ messages in thread
From: Shuah Khan @ 2026-05-05 18:41 UTC (permalink / raw)
To: Woradorn Laodhanadhaworn, shuah
Cc: broonie, linux-kselftest, linux-kernel, linux-kernel-mentees,
Shuah Khan
On 5/5/26 12:22, Woradorn Laodhanadhaworn wrote:
> Fix documentation to reference ksft_test_result_report() instead of
> ksft_test_result().
>
> Signed-off-by: Woradorn Laodhanadhaworn <woradorn.laon@gmail.com>
> ---
> tools/testing/selftests/kselftest.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h
> index 6d809f08ab7b..b50a8478d4d3 100644
> --- a/tools/testing/selftests/kselftest.h
> +++ b/tools/testing/selftests/kselftest.h
> @@ -346,9 +346,9 @@ void ksft_test_result_code(int exit_code, const char *test_name,
> }
>
> /**
> - * ksft_test_result() - Report test success based on truth of condition
> + * ksft_test_result_report() - Report test result based on a kselftest exit code
> *
> - * @condition: if true, report test success, otherwise failure.
> + * @result: a kselftest exit code
> */
> #define ksft_test_result_report(result, fmt, ...) do { \
> switch (result) { \
Applied to linx_kselftest next branch for Linux 7.2-rc1
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-05 18:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-05 18:22 [PATCH] kselftest: fix doc for ksft_test_result_report() Woradorn Laodhanadhaworn
2026-05-05 18:41 ` Shuah Khan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox