signal.h: add linux/signal.h and asm/signal.h to UAPI compile-test coverage
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 10 Feb 2022 02:11:24 +0000 (11:11 +0900)
committerArnd Bergmann <arnd@arndb.de>
Thu, 17 Feb 2022 08:09:36 +0000 (09:09 +0100)
linux/signal.h and asm/signal.h are currently excluded from the UAPI
compile-test because of the errors like follows:

    HDRTEST usr/include/asm/signal.h
  In file included from <command-line>:
  ./usr/include/asm/signal.h:103:9: error: unknown type name ‘size_t’
    103 |         size_t ss_size;
        |         ^~~~~~

The errors can be fixed by replacing size_t with __kernel_size_t.

Then, remove the no-header-test entries from user/include/Makefile.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
14 files changed:
arch/alpha/include/uapi/asm/signal.h
arch/arm/include/uapi/asm/signal.h
arch/h8300/include/uapi/asm/signal.h
arch/ia64/include/uapi/asm/signal.h
arch/m68k/include/uapi/asm/signal.h
arch/mips/include/uapi/asm/signal.h
arch/parisc/include/uapi/asm/signal.h
arch/powerpc/include/uapi/asm/signal.h
arch/s390/include/uapi/asm/signal.h
arch/sparc/include/uapi/asm/signal.h
arch/x86/include/uapi/asm/signal.h
arch/xtensa/include/uapi/asm/signal.h
include/uapi/asm-generic/signal.h
usr/include/Makefile

index a69dd8d..1413075 100644 (file)
@@ -100,7 +100,7 @@ struct sigaction {
 typedef struct sigaltstack {
        void __user *ss_sp;
        int ss_flags;
-       size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
 
 /* sigstack(2) is deprecated, and will be withdrawn in a future version
index c9a3ea1..9e21784 100644 (file)
@@ -93,7 +93,7 @@ struct sigaction {
 typedef struct sigaltstack {
        void __user *ss_sp;
        int ss_flags;
-       size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
 
 
index 2cd0dce..1165481 100644 (file)
@@ -85,7 +85,7 @@ struct sigaction {
 typedef struct sigaltstack {
        void *ss_sp;
        int ss_flags;
-       size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
 
 
index 38166a8..63d574e 100644 (file)
@@ -90,7 +90,7 @@ struct siginfo;
 typedef struct sigaltstack {
        void __user *ss_sp;
        int ss_flags;
-       size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
 
 
index 4619291..80f520b 100644 (file)
@@ -83,7 +83,7 @@ struct sigaction {
 typedef struct sigaltstack {
        void __user *ss_sp;
        int ss_flags;
-       size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
 
 #endif /* _UAPI_M68K_SIGNAL_H */
index e6c78a1..94a00f8 100644 (file)
@@ -100,7 +100,7 @@ struct sigaction {
 /* IRIX compatible stack_t  */
 typedef struct sigaltstack {
        void __user *ss_sp;
-       size_t ss_size;
+       __kernel_size_t ss_size;
        int ss_flags;
 } stack_t;
 
index e5a2657..8e4895c 100644 (file)
@@ -67,7 +67,7 @@ struct siginfo;
 typedef struct sigaltstack {
        void __user *ss_sp;
        int ss_flags;
-       size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
 
 #endif /* !__ASSEMBLY */
index 04873dd..37d41d8 100644 (file)
@@ -86,7 +86,7 @@ struct sigaction {
 typedef struct sigaltstack {
        void __user *ss_sp;
        int ss_flags;
-       size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
 
 
index 0189f32..e74d6ba 100644 (file)
@@ -108,7 +108,7 @@ struct sigaction {
 typedef struct sigaltstack {
         void __user *ss_sp;
         int ss_flags;
-        size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
 
 
index 53758d5..d395af9 100644 (file)
@@ -2,6 +2,7 @@
 #ifndef _UAPI__SPARC_SIGNAL_H
 #define _UAPI__SPARC_SIGNAL_H
 
+#include <asm/posix_types.h>
 #include <asm/sigcontext.h>
 #include <linux/compiler.h>
 
@@ -171,7 +172,7 @@ struct __old_sigaction {
 typedef struct sigaltstack {
        void                    __user *ss_sp;
        int                     ss_flags;
-       size_t                  ss_size;
+       __kernel_size_t         ss_size;
 } stack_t;
 
 
index 164a22a..777c3a0 100644 (file)
@@ -104,7 +104,7 @@ struct sigaction {
 typedef struct sigaltstack {
        void __user *ss_sp;
        int ss_flags;
-       size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
 
 #endif /* __ASSEMBLY__ */
index 79ddaba..b8c824d 100644 (file)
@@ -103,7 +103,7 @@ struct sigaction {
 typedef struct sigaltstack {
        void *ss_sp;
        int ss_flags;
-       size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
 
 #endif /* __ASSEMBLY__ */
index f634822..0eb69dc 100644 (file)
@@ -85,7 +85,7 @@ struct sigaction {
 typedef struct sigaltstack {
        void __user *ss_sp;
        int ss_flags;
-       size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
 
 #endif /* __ASSEMBLY__ */
index 83822c3..3150b86 100644 (file)
@@ -21,7 +21,6 @@ override c_flags = $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) -I$(objtree)/usr/include
 #
 # Sorted alphabetically.
 no-header-test += asm/shmbuf.h
-no-header-test += asm/signal.h
 no-header-test += asm/ucontext.h
 no-header-test += drm/vmwgfx_drm.h
 no-header-test += linux/am437x-vpfe.h
@@ -41,7 +40,6 @@ no-header-test += linux/patchkey.h
 no-header-test += linux/phonet.h
 no-header-test += linux/reiserfs_xattr.h
 no-header-test += linux/sctp.h
-no-header-test += linux/signal.h
 no-header-test += linux/sysctl.h
 no-header-test += linux/usb/audio.h
 no-header-test += linux/v4l2-mediabus.h