[PATCH v2] selftests/powerpc: Remove the path after initialization.

2024-09-29 Thread zhangjiao2
From: zhang jiao If there were no anamolies noted, then we can simply remove the log file and return. Signed-off-by: zhang jiao --- v1->v2: Remove the path after initialization. tools/testing/selftests/powerpc/mm/tlbie_test.c | 10 +- 1 file changed, 5 insertions(+), 5 deletio

[PATCH] selftests/powerpc: Rm the unnecessary remove function.

2024-09-26 Thread zhangjiao2
From: zhang jiao Path is not initialized before use, remove the unnecessary remove function. Signed-off-by: zhang jiao --- tools/testing/selftests/powerpc/mm/tlbie_test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/mm/tlbie_test.c b/tools/testing/selftes

[PATCH] selftests/net: Add missing va_end.

2024-09-26 Thread zhangjiao2
From: zhang jiao There is no va_end after va_copy, just add it. Signed-off-by: zhang jiao --- tools/testing/selftests/net/tcp_ao/lib/aolib.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/tcp_ao/lib/aolib.h b/tools/testing/selftests/net/tcp_ao/lib/aolib.h inde

[PATCH] selftests/mm: Add missing free.

2024-09-26 Thread zhangjiao2
From: zhang jiao There is a memory leak in mkdirty, just free src before return. Signed-off-by: zhang jiao --- tools/testing/selftests/mm/mkdirty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/mm/mkdirty.c b/tools/testing/selftests/mm/mkdirty.c index 1db134063c3

[PATCH] selftests/bpf: Add missing va_end.

2024-09-23 Thread zhangjiao2
From: zhang jiao There is no va_end after va_copy, just add it. Signed-off-by: zhang jiao --- tools/testing/selftests/bpf/test_progs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/test_progs.c b/tools/testing/selftests/bpf/test_progs.c index c7a70e1a1085..78

[PATCH] selftests: kselftest: Use strerror() on nolibc

2024-09-10 Thread zhangjiao2
From: zhang jiao Nolibc gained an implementation of strerror() recently. Use it and drop the ifndef. Signed-off-by: zhang jiao --- tools/testing/selftests/kselftest.h | 8 1 file changed, 8 deletions(-) diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kself

[PATCH v2] selftests/timers: Remove unused NSEC_PER_SEC macro

2024-09-05 Thread zhangjiao2
From: zhang jiao By readind the code, I found the macro NSEC_PER_SEC is never referenced in the code. Just remove it. Signed-off-by: zhang jiao --- v1->v2: Put together files with similar problems tools/testing/selftests/timers/change_skew.c | 3 --- tools/testing/selftests/timer

[PATCH v3] selftests: futex: Fix missing free in main

2024-09-05 Thread zhangjiao2
From: zhang jiao By readind the code, I found there is no free() after asprintf(). Just free it. Signed-off-by: zhang jiao --- v2->v3: Use a bool flag to determine if test_name needs free. tools/testing/selftests/futex/functional/futex_requeue_pi.c | 5 + 1 file changed, 5 inserti

[PATCH] Date: Remove unused macro

2024-09-05 Thread zhangjiao2
From: zhang jiao This macro NSEC_PER_SEC is never referenced in the code. Just remove it. Signed-off-by: zhang jiao --- tools/testing/selftests/timers/change_skew.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/testing/selftests/timers/change_skew.c b/tools/testing/selftests/tim

[PATCH] Date: Remove unused macro

2024-09-05 Thread zhangjiao2
From: zhang jiao This macro NSEC_PER_SEC is never referenced in the code. Just remove it. Signed-off-by: zhang jiao --- tools/testing/selftests/timers/skew_consistency.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/timers/skew_consistency.c b/tools/testing/self

[PATCH v2] selftests: futex: Fix missing free in main

2024-09-04 Thread zhangjiao2
From: zhang jiao By readind the code, I found there is no free() after asprintf(). Just free it. Signed-off-by: zhang jiao --- v1->v2: Set a flag to determine if test_name needs free. tools/testing/selftests/futex/functional/futex_requeue_pi.c | 4 1 file changed, 4 inser

[PATCH] selftests: futex: Fix missing free in main

2024-09-03 Thread zhangjiao2
From: zhang jiao Free string allocated by asprintf(). Signed-off-by: zhang jiao --- tools/testing/selftests/futex/functional/futex_requeue_pi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/futex/functional/futex_requeue_pi.c b/tools/testing/selftests/futex/fu