Commit 6e16edca authored by David Gibson's avatar David Gibson Committed by Linus Torvalds

[PATCH] ppc64: squash childregs warnings

Squash a couple of "pointer from integer" warnings recently introduced.
Signed-off-by: default avatarDavid Gibson <dwg@au1.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d7f0312f
...@@ -410,7 +410,7 @@ void start_thread(struct pt_regs *regs, unsigned long fdptr, unsigned long sp) ...@@ -410,7 +410,7 @@ void start_thread(struct pt_regs *regs, unsigned long fdptr, unsigned long sp)
unsigned long childregs = (unsigned long)current->thread_info + unsigned long childregs = (unsigned long)current->thread_info +
THREAD_SIZE; THREAD_SIZE;
childregs -= sizeof(struct pt_regs); childregs -= sizeof(struct pt_regs);
current->thread.regs = childregs; current->thread.regs = (struct pt_regs *)childregs;
} }
regs->nip = entry; regs->nip = entry;
......
...@@ -642,7 +642,7 @@ void start_thread32(struct pt_regs* regs, unsigned long nip, unsigned long sp) ...@@ -642,7 +642,7 @@ void start_thread32(struct pt_regs* regs, unsigned long nip, unsigned long sp)
unsigned long childregs = (unsigned long)current->thread_info + unsigned long childregs = (unsigned long)current->thread_info +
THREAD_SIZE; THREAD_SIZE;
childregs -= sizeof(struct pt_regs); childregs -= sizeof(struct pt_regs);
current->thread.regs = childregs; current->thread.regs = (struct pt_regs *)childregs;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment