x86/signal: Move siginfo field tests
authorBrian Gerst <brgerst@gmail.com>
Mon, 19 Dec 2022 19:39:03 +0000 (14:39 -0500)
committerIngo Molnar <mingo@kernel.org>
Fri, 6 Jan 2023 03:16:02 +0000 (04:16 +0100)
commitf6e2a56c2bad10dd4381d5ab021332ef70d81990
tree35667b85dc5b24f6fb3f9870daab9e6ff9386058
parent41c03ba9beea760bd2d2ac9250b09a2e192da2dc
x86/signal: Move siginfo field tests

Move the tests to the appropriate signal_$(BITS).c file.

Convert them to use static_assert(), removing the need for a dummy
function.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20221219193904.190220-2-brgerst@gmail.com
Cc: Al Viro <viro@zeniv.linux.org.uk>
arch/x86/kernel/signal_32.c
arch/x86/kernel/signal_64.c
arch/x86/kernel/signal_compat.c