mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64: fix invocation of restore_altstack
@ 2013-02-14 13:35 Mark Rutland
  2013-02-14 14:26 ` Al Viro
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Rutland @ 2013-02-14 13:35 UTC (permalink / raw)
  To: viro; +Cc: Catalin Marinas, linux-arm-kernel, linux-kernel

Hello,

I noticed the following issue while attempting to build an arm64 kernel from
next-20130214, and it still seems to be present in signal/for-next and
signal/arch-arm64.

It looks to be a trivial typo.

Thanks,
Mark.

---->8---
Since e6d056c7c0: "arm64: switch to generic sigaltstack", arm64 won't
build:

arch/arm64/kernel/signal.c: In function ‘sys_rt_sigreturn’:
arch/arm64/kernel/signal.c:152:2: error: incompatible type for argument 1 of ‘restore_altstack’
In file included from arch/arm64/kernel/signal.c:21:0:
include/linux/signal.h:434:5: note: expected ‘const struct stack_t *’ but argument is of type ‘stack_t’
make[1]: *** [arch/arm64/kernel/signal.o] Error 1
make: *** [arch/arm64/kernel] Error 2

This patch fixes up the call to restore_altstack to pass the correct
type.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
---
 arch/arm64/kernel/signal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c
index d60ad23..890a591 100644
--- a/arch/arm64/kernel/signal.c
+++ b/arch/arm64/kernel/signal.c
@@ -149,7 +149,7 @@ asmlinkage long sys_rt_sigreturn(struct pt_regs *regs)
 	if (restore_sigframe(regs, frame))
 		goto badframe;
 
-	if (restore_altstack(frame->uc.uc_stack))
+	if (restore_altstack(&frame->uc.uc_stack))
 		goto badframe;
 
 	return regs->regs[0];
-- 
1.8.1.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: fix invocation of restore_altstack
  2013-02-14 13:35 [PATCH] arm64: fix invocation of restore_altstack Mark Rutland
@ 2013-02-14 14:26 ` Al Viro
  0 siblings, 0 replies; 2+ messages in thread
From: Al Viro @ 2013-02-14 14:26 UTC (permalink / raw)
  To: Mark Rutland; +Cc: Catalin Marinas, linux-arm-kernel, linux-kernel

On Thu, Feb 14, 2013 at 01:35:52PM +0000, Mark Rutland wrote:
> Hello,
> 
> I noticed the following issue while attempting to build an arm64 kernel from
> next-20130214, and it still seems to be present in signal/for-next and
> signal/arch-arm64.
> 
> It looks to be a trivial typo.

Thanks; folded and pushed.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-14 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-14 13:35 [PATCH] arm64: fix invocation of restore_altstack Mark Rutland
2013-02-14 14:26 ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®