summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHans-Werner Hilse <hwhilse@gmail.com>2015-06-11 11:29:18 +0200
committerRichard Weinberger <richard@nod.at>2015-06-25 22:42:17 +0200
commit9a75551aeaa8c79fd6ad713cb20e6bbccc767331 (patch)
treec7e6018710c3efd33b372424d46d5d66bf6f458c /arch
parent1eb7c6c70e9d8e86b7083661e91ae8f6cd1bffd4 (diff)
downloadop-kernel-dev-9a75551aeaa8c79fd6ad713cb20e6bbccc767331.zip
op-kernel-dev-9a75551aeaa8c79fd6ad713cb20e6bbccc767331.tar.gz
um: Do not use __ptr_t type for stack_t's .ss pointer
__ptr_t type is a glibc-specific type, while the generally documented type is a void*. That's what other C libraries use, too. Signed-off-by: Hans-Werner Hilse <hwhilse@gmail.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch')
-rw-r--r--arch/um/os-Linux/signal.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/um/os-Linux/signal.c b/arch/um/os-Linux/signal.c
index 7b605e4..036d0db 100644
--- a/arch/um/os-Linux/signal.c
+++ b/arch/um/os-Linux/signal.c
@@ -112,9 +112,11 @@ void timer_init(void)
void set_sigstack(void *sig_stack, int size)
{
- stack_t stack = ((stack_t) { .ss_flags = 0,
- .ss_sp = (__ptr_t) sig_stack,
- .ss_size = size - sizeof(void *) });
+ stack_t stack = {
+ .ss_flags = 0,
+ .ss_sp = sig_stack,
+ .ss_size = size - sizeof(void *)
+ };
if (sigaltstack(&stack, NULL) != 0)
panic("enabling signal stack failed, errno = %d\n", errno);
OpenPOWER on IntegriCloud