]> Gentwo Git Trees - linux/.git/commit
selftests: proc: mark vsyscall strings maybe-unused
authorBala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>
Wed, 20 Aug 2025 17:56:10 +0000 (23:26 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 14 Sep 2025 00:32:53 +0000 (17:32 -0700)
commit17bdc64c0d419b78bb400c221d36eaa391d16b3a
tree7e4d9598423a175b8943609fa82e121a28a7091a
parent3e3f55f8b73fa0e5c4df50f8b6c001f0a1f18adf
selftests: proc: mark vsyscall strings maybe-unused

The str_vsyscall_* constants in proc-pid-vm.c triggers
-Wunused-const-variable warnings with gcc-13.32 and clang 18.1.

Define and apply __maybe_unused locally to suppress the warnings.  No
functional change

Fixes compiler warning:
warning: `str_vsyscall_*' defined but not used[-Wunused-const-variable]

Link: https://lkml.kernel.org/r/20250820175610.83014-1-reddybalavignesh9979@gmail.com
Signed-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/proc/proc-pid-vm.c