Эх сурвалжийг харах

Add standard include guard to asm-generic/signal and use compiler.h

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
David Woodhouse 19 жил өмнө
parent
commit
ad15887986

+ 7 - 0
include/asm-generic/signal.h

@@ -1,3 +1,8 @@
+#ifndef __ASM_GENERIC_SIGNAL_H
+#define __ASM_GENERIC_SIGNAL_H
+
+#include <linux/compiler.h>
+
 #ifndef SIG_BLOCK
 #ifndef SIG_BLOCK
 #define SIG_BLOCK          0	/* for blocking signals */
 #define SIG_BLOCK          0	/* for blocking signals */
 #endif
 #endif
@@ -19,3 +24,5 @@ typedef __restorefn_t __user *__sigrestore_t;
 #define SIG_IGN	((__force __sighandler_t)1)	/* ignore signal */
 #define SIG_IGN	((__force __sighandler_t)1)	/* ignore signal */
 #define SIG_ERR	((__force __sighandler_t)-1)	/* error return from signal */
 #define SIG_ERR	((__force __sighandler_t)-1)	/* error return from signal */
 #endif
 #endif
+
+#endif /* __ASM_GENERIC_SIGNAL_H */