[PATCH] asm-generic: Remove empty #ifdef SA_RESTORER

Christophe Leroy posted 1 patch 3 years, 6 months ago
include/asm-generic/signal.h | 2 --
1 file changed, 2 deletions(-)
[PATCH] asm-generic: Remove empty #ifdef SA_RESTORER
Posted by Christophe Leroy 3 years, 6 months ago
There was a #ifdef SA_RESTORER to guard the sa_restorer field
in struct sigaction.

Commit 8a1ab3155c2a ("UAPI: (Scripted) Disintegrate
include/asm-generic") moved that struct into
uapi/asm-generic/signal.h but the #ifdef SA_RESTORER remained.

Remove it.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
---
 include/asm-generic/signal.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/asm-generic/signal.h b/include/asm-generic/signal.h
index c53984fa9761..663dd6d0795d 100644
--- a/include/asm-generic/signal.h
+++ b/include/asm-generic/signal.h
@@ -5,8 +5,6 @@
 #include <uapi/asm-generic/signal.h>
 
 #ifndef __ASSEMBLY__
-#ifdef SA_RESTORER
-#endif
 
 #include <asm/sigcontext.h>
 #undef __HAVE_ARCH_SIG_BITOPS
-- 
2.37.1
Re: [PATCH] asm-generic: Remove empty #ifdef SA_RESTORER
Posted by Arnd Bergmann 3 years, 6 months ago
On Thu, Sep 8, 2022, at 11:12 AM, Christophe Leroy wrote:
> There was a #ifdef SA_RESTORER to guard the sa_restorer field
> in struct sigaction.
>
> Commit 8a1ab3155c2a ("UAPI: (Scripted) Disintegrate
> include/asm-generic") moved that struct into
> uapi/asm-generic/signal.h but the #ifdef SA_RESTORER remained.
>
> Remove it.
>
> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
> ---


Applied to asm-generic tree, thanks

     Arnd