linux/tools/testing/selftests/landlock
Bala-Vignesh-Reddy a7498388b0 selftests: centralise maybe-unused definition in kselftest.h
Several selftests subdirectories duplicated the define __maybe_unused,
leading to redundant code.  Move to kselftest.h header and remove other
definitions.

This addresses the duplication noted in the proc-pid-vm warning fix

Link: https://lkml.kernel.org/r/20250821101159.2238-1-reddybalavignesh9979@gmail.com
Signed-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Link:https://lore.kernel.org/lkml/20250820143954.33d95635e504e94df01930d0@linux-foundation.org/
Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
Acked-by: SeongJae Park <sj@kernel.org>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Acked-by: Mickal Salan <mic@digikod.net>	[landlock]
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-09-13 16:55:16 -07:00
..
.gitignore selftests/landlock: Test audit with restrict flags 2025-03-26 13:59:46 +01:00
Makefile selftests/landlock: Test audit with restrict flags 2025-03-26 13:59:46 +01:00
audit.h selftests: centralise maybe-unused definition in kselftest.h 2025-09-13 16:55:16 -07:00
audit_test.c selftests/landlock: Fix build of audit_test 2025-06-19 13:55:40 +02:00
base_test.c selftests/landlock: Extend tests for landlock_restrict_self(2)'s flags 2025-03-26 13:59:45 +01:00
common.h selftests: centralise maybe-unused definition in kselftest.h 2025-09-13 16:55:16 -07:00
config selftests/landlock: Add tests for audit flags and domain IDs 2025-03-26 13:59:45 +01:00
config.um selftests/landlock: Add hostfs tests 2023-06-12 21:26:23 +02:00
fs_test.c selftests/landlock: Add test to check rule tied to covered mount point 2025-06-19 13:55:41 +02:00
net_test.c selftests/landlock: Add audit tests for network 2025-03-26 13:59:48 +01:00
ptrace_test.c selftests/landlock: Add audit tests for ptrace 2025-03-26 13:59:47 +01:00
sandbox-and-launch.c selftests/landlock: Add layout1.umount_sandboxer tests 2025-01-17 19:05:38 +01:00
scoped_abstract_unix_test.c selftests/landlock: Add audit tests for abstract UNIX socket scoping 2025-03-26 13:59:47 +01:00
scoped_base_variants.h selftests/landlock: Test abstract UNIX socket scoping 2024-09-16 23:50:48 +02:00
scoped_common.h selftests/landlock: Test abstract UNIX socket scoping 2024-09-16 23:50:48 +02:00
scoped_multiple_domain_variants.h selftests/landlock: Test abstract UNIX socket scoping 2024-09-16 23:50:48 +02:00
scoped_signal_test.c selftests/landlock: Add a new test for setuid() 2025-03-26 13:59:32 +01:00
scoped_test.c landlock: Add signal scoping 2024-09-16 23:50:52 +02:00
true.c
wait-pipe-sandbox.c selftests/landlock: Test audit with restrict flags 2025-03-26 13:59:46 +01:00
wait-pipe.c selftests/landlock: Add layout1.umount_sandboxer tests 2025-01-17 19:05:38 +01:00
wrappers.h selftests/landlock: Add wrappers.h 2025-01-17 19:05:38 +01:00