From 40d07758a5677e8869d7a62a499236bb6ed01897 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Fri, 5 Apr 2019 14:09:25 -0500 Subject: [PATCH] ppc32/64: correct signature of function parameter to makecontext Because makecontext can pass a set of integer arguments to the provided function, it is incorrect to require that this function accept no parameters. --- arch/ppc/makecontext.c | 2 +- arch/ppc64/makecontext.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/ppc/makecontext.c b/arch/ppc/makecontext.c index 4a404a4..0633c0f 100644 --- a/arch/ppc/makecontext.c +++ b/arch/ppc/makecontext.c @@ -25,7 +25,7 @@ extern void __start_context(void); void -__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) +__makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) { greg_t *sp; va_list va; diff --git a/arch/ppc64/makecontext.c b/arch/ppc64/makecontext.c index a4c1bf9..8a293b5 100644 --- a/arch/ppc64/makecontext.c +++ b/arch/ppc64/makecontext.c @@ -25,7 +25,7 @@ extern void __start_context(void); void -__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) +__makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) { greg_t *sp; va_list va;