Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1590730
| From | hpa@zytor.com |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] x86/uapi: fix asm/signal.h userspace compilation error |
| Date | 2017-03-02 01:30 +0100 |
| Message-ID | <tgmN4-2vO-29@gated-at.bofh.it> (permalink) |
| References | <teVvA-7L7-11@gated-at.bofh.it> <tgfiy-5AK-17@gated-at.bofh.it> <tgmDo-2sk-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On March 1, 2017 4:18:54 PM PST, "Dmitry V. Levin" <ldv@altlinux.org> wrote:
>Replace size_t to fix the following asm/signal.h userspace compilation
>error:
>
>/usr/include/asm/signal.h:126:2: error: unknown type name 'size_t'
> size_t ss_size;
>
>size_t is replaced with __kernel_size_t in all cases except x32 where
>unsigned int has to be used instead.
>
>Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
>---
>v2: create a separate patch for x86,
> replace size_t instead of including <stddef.h>.
>
> arch/x86/include/uapi/asm/signal.h | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
>diff --git a/arch/x86/include/uapi/asm/signal.h
>b/arch/x86/include/uapi/asm/signal.h
>index 8264f47..f80473f 100644
>--- a/arch/x86/include/uapi/asm/signal.h
>+++ b/arch/x86/include/uapi/asm/signal.h
>@@ -127,7 +127,11 @@ struct sigaction {
> typedef struct sigaltstack {
> void __user *ss_sp;
> int ss_flags;
>- size_t ss_size;
>+#if defined(__x86_64__) && defined(__ILP32__)
>+ unsigned int ss_size;
>+#else
>+ __kernel_size_t ss_size;
>+#endif
> } stack_t;
>
> #endif /* __ASSEMBLY__ */
Sounds like we still ought to make this a type by itself.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] uapi: fix asm/signal.h userspace compilation errors Arnd Bergmann <arnd@arndb.de> - 2017-03-01 17:30 +0100
[PATCH v2] x86/uapi: fix asm/signal.h userspace compilation error "Dmitry V. Levin" <ldv@altlinux.org> - 2017-03-02 01:20 +0100
Re: [PATCH v2] x86/uapi: fix asm/signal.h userspace compilation error hpa@zytor.com - 2017-03-02 01:30 +0100
Re: [PATCH v2] x86/uapi: fix asm/signal.h userspace compilation error "Dmitry V. Levin" <ldv@altlinux.org> - 2017-03-02 02:30 +0100
[PATCH v3 2/2] x86/uapi: fix asm/signal.h userspace compilation error "Dmitry V. Levin" <ldv@altlinux.org> - 2017-03-03 02:50 +0100
[PATCH 1/2] uapi: introduce __kernel_uapi_size_t "Dmitry V. Levin" <ldv@altlinux.org> - 2017-03-03 02:50 +0100
[PATCH v2] uapi: fix asm/signal.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-03-02 01:30 +0100
Re: [PATCH] uapi: fix asm/signal.h userspace compilation errors "Carlos O'Donell" <carlos@systemhalted.org> - 2017-03-02 16:30 +0100
Re: [PATCH] uapi: fix asm/signal.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-03-02 17:10 +0100
Re: [PATCH] uapi: fix asm/signal.h userspace compilation errors "Carlos O'Donell" <carlos@systemhalted.org> - 2017-03-04 02:30 +0100
Re: [PATCH] uapi: fix asm/signal.h userspace compilation errors "Carlos O'Donell" <carlos@systemhalted.org> - 2017-03-06 16:20 +0100
csiph-web