[PATCH v3 2/2] x86/uapi: fix asm/signal.h userspace compilation error
From: Dmitry V. Levin
Date: Thu Mar 02 2017 - 20:48:50 EST
Replace size_t with __kernel_uapi_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;
Signed-off-by: Dmitry V. Levin <ldv@xxxxxxxxxxxx>
Link: http://lkml.kernel.org/r/20170302001853.GA27097@xxxxxxxxxxxx
---
arch/x86/include/uapi/asm/signal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/uapi/asm/signal.h b/arch/x86/include/uapi/asm/signal.h
index 8264f47..c8b2c95 100644
--- a/arch/x86/include/uapi/asm/signal.h
+++ b/arch/x86/include/uapi/asm/signal.h
@@ -127,7 +127,7 @@ struct sigaction {
typedef struct sigaltstack {
void __user *ss_sp;
int ss_flags;
- size_t ss_size;
+ __kernel_uapi_size_t ss_size;
} stack_t;
#endif /* __ASSEMBLY__ */
--
ldv