mirror-linux/tools/testing/selftests/perf_events
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/perf_events: Add a mmap() correctness test 2025-08-05 21:55:29 +02:00
Makefile selftests/perf_events: Add a mmap() correctness test 2025-08-05 21:55:29 +02:00
config
mmap.c selftests/perf_events: Add a mmap() correctness test 2025-08-05 21:55:29 +02:00
remove_on_exec.c
settings
sigtrap_threads.c selftests/perf_events: Add a SIGTRAP stress test with disables 2022-10-17 16:32:06 +02:00
watermark_signal.c selftests: centralise maybe-unused definition in kselftest.h 2025-09-13 16:55:16 -07:00