Skip to content

Commit 72113d0

Browse files
masahir0yarndb
authored andcommitted
signal.h: add linux/signal.h and asm/signal.h to UAPI compile-test coverage
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 <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent dfd42fa commit 72113d0

File tree

14 files changed

+14
-15
lines changed

14 files changed

+14
-15
lines changed

arch/alpha/include/uapi/asm/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct sigaction {
100100
typedef struct sigaltstack {
101101
void __user *ss_sp;
102102
int ss_flags;
103-
size_t ss_size;
103+
__kernel_size_t ss_size;
104104
} stack_t;
105105

106106
/* sigstack(2) is deprecated, and will be withdrawn in a future version

arch/arm/include/uapi/asm/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct sigaction {
9393
typedef struct sigaltstack {
9494
void __user *ss_sp;
9595
int ss_flags;
96-
size_t ss_size;
96+
__kernel_size_t ss_size;
9797
} stack_t;
9898

9999

arch/h8300/include/uapi/asm/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct sigaction {
8585
typedef struct sigaltstack {
8686
void *ss_sp;
8787
int ss_flags;
88-
size_t ss_size;
88+
__kernel_size_t ss_size;
8989
} stack_t;
9090

9191

arch/ia64/include/uapi/asm/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ struct siginfo;
9090
typedef struct sigaltstack {
9191
void __user *ss_sp;
9292
int ss_flags;
93-
size_t ss_size;
93+
__kernel_size_t ss_size;
9494
} stack_t;
9595

9696

arch/m68k/include/uapi/asm/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct sigaction {
8383
typedef struct sigaltstack {
8484
void __user *ss_sp;
8585
int ss_flags;
86-
size_t ss_size;
86+
__kernel_size_t ss_size;
8787
} stack_t;
8888

8989
#endif /* _UAPI_M68K_SIGNAL_H */

arch/mips/include/uapi/asm/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct sigaction {
100100
/* IRIX compatible stack_t */
101101
typedef struct sigaltstack {
102102
void __user *ss_sp;
103-
size_t ss_size;
103+
__kernel_size_t ss_size;
104104
int ss_flags;
105105
} stack_t;
106106

arch/parisc/include/uapi/asm/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct siginfo;
6767
typedef struct sigaltstack {
6868
void __user *ss_sp;
6969
int ss_flags;
70-
size_t ss_size;
70+
__kernel_size_t ss_size;
7171
} stack_t;
7272

7373
#endif /* !__ASSEMBLY */

arch/powerpc/include/uapi/asm/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct sigaction {
8686
typedef struct sigaltstack {
8787
void __user *ss_sp;
8888
int ss_flags;
89-
size_t ss_size;
89+
__kernel_size_t ss_size;
9090
} stack_t;
9191

9292

arch/s390/include/uapi/asm/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ struct sigaction {
108108
typedef struct sigaltstack {
109109
void __user *ss_sp;
110110
int ss_flags;
111-
size_t ss_size;
111+
__kernel_size_t ss_size;
112112
} stack_t;
113113

114114

arch/sparc/include/uapi/asm/signal.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#ifndef _UAPI__SPARC_SIGNAL_H
33
#define _UAPI__SPARC_SIGNAL_H
44

5+
#include <asm/posix_types.h>
56
#include <asm/sigcontext.h>
67
#include <linux/compiler.h>
78

@@ -171,7 +172,7 @@ struct __old_sigaction {
171172
typedef struct sigaltstack {
172173
void __user *ss_sp;
173174
int ss_flags;
174-
size_t ss_size;
175+
__kernel_size_t ss_size;
175176
} stack_t;
176177

177178

arch/x86/include/uapi/asm/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct sigaction {
104104
typedef struct sigaltstack {
105105
void __user *ss_sp;
106106
int ss_flags;
107-
size_t ss_size;
107+
__kernel_size_t ss_size;
108108
} stack_t;
109109

110110
#endif /* __ASSEMBLY__ */

arch/xtensa/include/uapi/asm/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ struct sigaction {
103103
typedef struct sigaltstack {
104104
void *ss_sp;
105105
int ss_flags;
106-
size_t ss_size;
106+
__kernel_size_t ss_size;
107107
} stack_t;
108108

109109
#endif /* __ASSEMBLY__ */

include/uapi/asm-generic/signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct sigaction {
8585
typedef struct sigaltstack {
8686
void __user *ss_sp;
8787
int ss_flags;
88-
size_t ss_size;
88+
__kernel_size_t ss_size;
8989
} stack_t;
9090

9191
#endif /* __ASSEMBLY__ */

usr/include/Makefile

-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ override c_flags = $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) -I$(objtree)/usr/include
2121
#
2222
# Sorted alphabetically.
2323
no-header-test += asm/shmbuf.h
24-
no-header-test += asm/signal.h
2524
no-header-test += asm/ucontext.h
2625
no-header-test += drm/vmwgfx_drm.h
2726
no-header-test += linux/am437x-vpfe.h
@@ -41,7 +40,6 @@ no-header-test += linux/patchkey.h
4140
no-header-test += linux/phonet.h
4241
no-header-test += linux/reiserfs_xattr.h
4342
no-header-test += linux/sctp.h
44-
no-header-test += linux/signal.h
4543
no-header-test += linux/sysctl.h
4644
no-header-test += linux/usb/audio.h
4745
no-header-test += linux/v4l2-mediabus.h

0 commit comments

Comments
 (0)