summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2026-10-12 07:53:29 -0400
committerAndrew Morton <akpm@linux-foundation.org>2026-10-20 22:29:57 -0700
commitc4d9005e7e1ee6ce277f47cf53d44fc5b90b287b (patch)
tree885d34548a4ccd38300caf324a24df21d51bb5cb /rust/kernel/alloc/kvec
parent8c714a074074af7ae59233c1fa6ef9d7aa710462 (diff)
selftests/proc: proc-pid-vm: fix unused variable warning on non-x86
g_vsyscall is only used by the x86_64 test, so clang builds for other architectures get: proc-pid-vm.c:224:21: warning: unused variable 'g_vsyscall' [-Wunused-variable] The vsyscall strings next to it had the same problem and were marked __maybe_unused for it. Move all of the vsyscall variables into the __x86_64__ block that uses them instead, and drop those annotations along with the local __maybe_unused fallback that was added for them. Link: https://lore.kernel.org/20261012115330.3777115-1-sashal@kernel.org Fixes: 17415606f9d8 ("tools/testing/selftests/proc/proc-pid-vm.c: test with vsyscall in mind") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Suggested-by: Andrew Morton <akpm@linux-foundation.org> Assisted-by: LLM Cc: Shuah Khan <shuah@kernel.org> Cc: Alexey Dobriyan <adobriyan@gmail.com>
Diffstat (limited to 'rust/kernel/alloc/kvec')
0 files changed, 0 insertions, 0 deletions