From: Andrew Morton Date: Wed, 13 Mar 2013 21:59:34 +0000 (-0700) Subject: kernel/signal.c: use __ARCH_HAS_SA_RESTORER instead of SA_RESTORER X-Git-Tag: v3.4.39~68 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=30e8f45d7687bcc6ac4010ea37ae78d8e365d2b7;p=karo-tx-linux.git kernel/signal.c: use __ARCH_HAS_SA_RESTORER instead of SA_RESTORER commit 522cff142d7d2f9230839c9e1f21a4d8bcc22a4a upstream. __ARCH_HAS_SA_RESTORER is the preferred conditional for use in 3.9 and later kernels, per Kees. Signed-off-by: Andrew Morton Cc: Emese Revfy Cc: Emese Revfy Cc: PaX Team Cc: Al Viro Cc: Oleg Nesterov Cc: "Eric W. Biederman" Cc: Serge Hallyn Cc: Julien Tinnes Signed-off-by: Linus Torvalds Cc: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/signal.c b/kernel/signal.c index 9f70f45f9440..32b10d469b5f 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -482,7 +482,7 @@ flush_signal_handlers(struct task_struct *t, int force_default) if (force_default || ka->sa.sa_handler != SIG_IGN) ka->sa.sa_handler = SIG_DFL; ka->sa.sa_flags = 0; -#ifdef SA_RESTORER +#ifdef __ARCH_HAS_SA_RESTORER ka->sa.sa_restorer = NULL; #endif sigemptyset(&ka->sa.sa_mask);