On Fri, 08 Nov 2024 11:05:49 +0000, Catalin Marinas wrote:
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) | ^~~~~~~~~~~~~~~~~~~~~~~~~
[...]
Applied to arm64 (for-next/pkey-signal), thanks!
[1/1] selftests/mm: Fix unused function warning for aarch64_write_signal_pkey() https://git.kernel.org/arm64/c/929bbc16abfb