[PATCH v3] selftests: seccomp: fix format-zero-length warnings

2024-06-11 Thread Amer Al Shanawany
^~ Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312260235.uj5ug8k9-...@intel.com/ Suggested-by: Kees Cook Signed-off-by: Amer Al Shanawany --- v1 -> v2: removed empty print statements v2 -> v3: used Kees's suggestion --- tools/test

[PATCH v2] selftests: seccomp: fix format-zero-length warnings

2024-06-07 Thread Amer Al Shanawany
Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312260235.uj5ug8k9-...@intel.com/ Signed-off-by: Amer Al Shanawany --- Changes v1 -> v2: removed empty print statements --- tools/testing/selftests/seccomp/seccomp_benchmark.c | 3 --- 1 file changed, 3 deletio

[PATCH] selftests: proc: remove unreached code and fix build warning

2024-06-03 Thread Amer Al Shanawany
://lore.kernel.org/r/202404010211.ygidvmwa-...@intel.com/ Signed-off-by: Amer Al Shanawany --- tools/testing/selftests/proc/proc-empty-vm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/testing/selftests/proc/proc-empty-vm.c b/tools/testing/selftests/proc/proc-empty-vm.c index 56198d4ca2bf

[PATCH] selftests: seccomp: fix format-zero-length warnings

2024-06-03 Thread Amer Al Shanawany
org/oe-kbuild-all/202312260235.uj5ug8k9-...@intel.com/ Signed-off-by: Amer Al Shanawany --- tools/testing/selftests/seccomp/seccomp_benchmark.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/seccomp/seccomp_benchmark.c b/tools/testing/selftests/sec

Re: [PATCH] selftests: filesystems: fix warn_unused_result build warnings

2024-06-03 Thread Amer Al Shanawany
On 5/4/24 19:17, Amer Al Shanawany wrote: > On 4/19/24 18:41, Muhammad Usama Anjum wrote: >> On 4/17/24 11:49 PM, Amer Al Shanawany wrote: >>> Fix the following warnings by adding return check and error messages. >>> >>> statmount_test.c: In function ‘cleanup_na

Re: [PATCH v2] selftests: filesystems: add missing stddef header

2024-05-04 Thread Amer Al Shanawany
On 4/22/24 15:49, Muhammad Usama Anjum wrote: > On 4/22/24 6:16 PM, Amer Al Shanawany wrote: >> fix compiler warning and errors when compiling statmount test. >> >> gcc 12.3 (Ubuntu 12.3.0-1ubuntu1~22.04) >> >> statmount_test.c:572:24: warning: implicit dec

Re: [PATCH] selftests: filesystems: fix warn_unused_result build warnings

2024-05-04 Thread Amer Al Shanawany
On 4/19/24 18:41, Muhammad Usama Anjum wrote: > On 4/17/24 11:49 PM, Amer Al Shanawany wrote: >> Fix the following warnings by adding return check and error messages. >> >> statmount_test.c: In function ‘cleanup_namespace’: >> statmount_test.c:128:9: warning: ignor

[PATCH] selftests/capabilities: fix warn_unused_result build warnings

2024-05-04 Thread Amer Al Shanawany
(); | ^~~~ Signed-off-by: Amer Al Shanawany --- tools/testing/selftests/capabilities/test_execve.c | 12 +--- tools/testing/selftests/capabilities/validate_cap.c | 7 ++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/capabilities

[PATCH v2] selftests: filesystems: add missing stddef header

2024-04-22 Thread Amer Al Shanawany
forget to ‘#include ’? 17 | #include "../../kselftest.h" +++ |+#include Signed-off-by: Amer Al Shanawany --- V1 -> V2 added compiler warning in the patch message tools/testing/selftests/filesystems/statmount/statmount_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/

[PATCH] selftests: mm: fix linker error for inline function

2024-04-20 Thread Amer Al Shanawany
usr/bin/ld: seal_elf.c:(.text+0x82c): undefined reference to `sys_mprotect' /usr/bin/ld: seal_elf.c:(.text+0xa4e): undefined reference to `sys_mprotect' Signed-off-by: Amer Al Shanawany --- tools/testing/selftests/mm/seal_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

Re: [PATCH] selftests: filesystems: add missing stddef header

2024-04-20 Thread Amer Al Shanawany
On 4/19/24 18:45, Muhammad Usama Anjum wrote: > On 4/17/24 9:16 PM, Amer Al Shanawany wrote: >> fix compiler warning and errors when compiling statmount test. > The error description or the compiler with version is required to reproduce > the error easily. I'm unable to reprod

[PATCH] selftests: filesystems: fix warn_unused_result build warnings

2024-04-17 Thread Amer Al Shanawany
); | ^ statmount_test.c:129:9: warning: ignoring return value of ‘chroot’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 129 | chroot("."); | ^~~ Signed-off-by: Amer Al Shanawany --- .../selftests/filesystems

[PATCH] selftests: filesystems: add missing stddef header

2024-04-17 Thread Amer Al Shanawany
fix compiler warning and errors when compiling statmount test. Signed-off-by: Amer Al Shanawany --- tools/testing/selftests/filesystems/statmount/statmount_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/filesystems/statmount/statmount_test.c b/tools/testing