[PATCH] selftests: netfilter: Fix the bug of missing return values

2024-11-08 Thread guanjing
Fixed the bug of some functions were missing return values. Fixes: eff3c558bb7e ("netfilter: ctnetlink: support filtering by zone") Signed-off-by: Guan Jing --- .../testing/selftests/net/netfilter/conntrack_dump_flush.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/sel

[PATCH v1] selftests: mm: Fix conversion specifiers in transact_test()

2024-11-18 Thread guanjing
Lots of incorrect conversion specifiers. Fix them. Fixes: 46fd75d4a3c9 ("selftests: mm: add pagemap ioctl tests") Signed-off-by: guanjing --- tools/testing/selftests/mm/pagemap_ioctl.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/testing/se

[PATCH v1] selftests/bpf: Fix unnecessary conversion to bool in 'run_subtest'

2024-11-19 Thread guanjing
Fixes the following coccicheck: tools/testing/selftests/bpf/test_loader.c:1033:64-69: WARNING: conversion to bool not needed here Fixes: 80a4129fcf20 ("selftests/bpf: Add unit tests for bpf_arena_alloc/free_pages") Signed-off-by: guanjing --- tools/testing/selftests/bpf/test_lo

[PATCH v1] selftests/bpf: fix application of sizeof to pointer

2024-11-18 Thread guanjing
detected with the help of Coccinelle. Fixes: 5ddafcc377f9 ("selftests/bpf: Fix a few tests for GCC related warnings.") Signed-off-by: guanjing --- tools/testing/selftests/bpf/progs/test_tunnel_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests

Re: [PATCH v1] selftests: mm: Fix conversion specifiers intransact_test()

2024-11-21 Thread guanjing
I found it when reading the code. So far, I haven't found any tools that can be used for scanning yet. :) Thank you for your review. On 2024/11/19 15:33, Muhammad Usama Anjum wrote: Thanks for the patch. On 11/17/24 12:12 PM, guanjing wrote: Lots of incorrect conversion specifiers