Use the common helper instead of it's own variant. Signed-off-by: Richard Weinberger <richard@xxxxxx> --- arch/x86/kernel/signal.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c index 9e5de68..cad7c49 100644 --- a/arch/x86/kernel/signal.c +++ b/arch/x86/kernel/signal.c @@ -18,7 +18,6 @@ #include <linux/tracehook.h> #include <linux/unistd.h> #include <linux/stddef.h> -#include <linux/personality.h> #include <linux/uaccess.h> #include <linux/user-return-notifier.h> #include <linux/uprobes.h> @@ -596,12 +595,10 @@ badframe: static int signr_convert(int sig) { #ifdef CONFIG_X86_32 - struct thread_info *info = current_thread_info(); - - if (info->exec_domain && info->exec_domain->signal_invmap && sig < 32) - return info->exec_domain->signal_invmap[sig]; -#endif /* CONFIG_X86_32 */ + return translate_signal(sig); +#else /* CONFIG_X86_32 */ return sig; +#endif } static int -- 1.8.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html