Skip to content

Commit

Permalink
signal.h: add linux/signal.h and asm/signal.h to UAPI compile-test co…
Browse files Browse the repository at this point in the history
…verage

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>
  • Loading branch information
masahir0y authored and arndb committed Feb 17, 2022
1 parent dfd42fa commit 72113d0
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion arch/alpha/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down
2 changes: 1 addition & 1 deletion arch/h8300/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down
2 changes: 1 addition & 1 deletion arch/ia64/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down
2 changes: 1 addition & 1 deletion arch/m68k/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion arch/mips/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion arch/parisc/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down
2 changes: 1 addition & 1 deletion arch/s390/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down
3 changes: 2 additions & 1 deletion arch/sparc/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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;


Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */
Expand Down
2 changes: 1 addition & 1 deletion arch/xtensa/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */
Expand Down
2 changes: 1 addition & 1 deletion include/uapi/asm-generic/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */
Expand Down
2 changes: 0 additions & 2 deletions usr/include/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 72113d0

Please sign in to comment.