]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: squash childregs warnings
authorDavid Gibson <david@gibson.dropbear.id.au>
Sun, 3 Oct 2004 02:16:12 +0000 (19:16 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 3 Oct 2004 02:16:12 +0000 (19:16 -0700)
Squash a couple of "pointer from integer" warnings recently introduced.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/process.c
arch/ppc64/kernel/sys_ppc32.c

index 2201a550252818013949b74c647fc0460504aee6..6eebb805dda5ef31a17350b419736fbfa61218cd 100644 (file)
@@ -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 +
                                                THREAD_SIZE;
                childregs -= sizeof(struct pt_regs);
-               current->thread.regs = childregs;
+               current->thread.regs = (struct pt_regs *)childregs;
        }
 
        regs->nip = entry;
index 88edab7ef2d76c4ac83402d67ddc9799d842ca4f..710b7cd9ec470e5985f57141ff60777b89239219 100644 (file)
@@ -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 +
                                                THREAD_SIZE;
                childregs -= sizeof(struct pt_regs);
-               current->thread.regs = childregs;
+               current->thread.regs = (struct pt_regs *)childregs;
        }
 
        /*