aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kernel/acpi/cppc.c
diff options
context:
space:
mode:
authorCatalin Marinas <[email protected]>2024-11-08 11:05:49 +0000
committerCatalin Marinas <[email protected]>2024-11-11 22:46:52 +0000
commit929bbc16abfb0144db7ac619c77f60b188e555ab (patch)
tree4d8e64ff2f3317e94acc19475ecb4ec9c982c974 /arch/x86/kernel/acpi/cppc.c
parentdb64dfffcad2992d6bfc680822bdf715335c43f1 (diff)
selftests/mm: Fix unused function warning for aarch64_write_signal_pkey()
Since commit 49f59573e9e0 ("selftests/mm: Enable pkey_sighandler_tests on arm64"), pkey_sighandler_tests.c (which includes pkey-arm64.h via pkey-helpers.h) ends up compiled for arm64. Since it doesn't use aarch64_write_signal_pkey(), the compiler warns: In file included from pkey-helpers.h:106, from pkey_sighandler_tests.c:31: pkey-arm64.h:130:13: warning: ‘aarch64_write_signal_pkey’ defined but not used [-Wunused-function] 130 | static void aarch64_write_signal_pkey(ucontext_t *uctxt, u64 pkey) | ^~~~~~~~~~~~~~~~~~~~~~~~~ Make the aarch64_write_signal_pkey() a 'static inline void' function to avoid the compiler warning. Fixes: f5b5ea51f78f ("selftests: mm: make protection_keys test work on arm64") Cc: Shuah Khan <[email protected]> Cc: Joey Gouly <[email protected]> Cc: Kevin Brodsky <[email protected]> Reviewed-by: Kevin Brodsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'arch/x86/kernel/acpi/cppc.c')
0 files changed, 0 insertions, 0 deletions