* [TRIVIAL, PPC64] Squash childregs warnings
@ 2004-09-28 5:52 David Gibson
0 siblings, 0 replies; only message in thread
From: David Gibson @ 2004-09-28 5:52 UTC (permalink / raw)
To: Andrew Morton
Cc: Anton Blanchard, Paul Mackerras, Benjamin Herrenschmidt, trivial,
linux-kernel
Andrew, please apply.
Squash a couple of "pointer from integer" warnings recently
introduced.
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Index: working-2.6/arch/ppc64/kernel/process.c
===================================================================
--- working-2.6.orig/arch/ppc64/kernel/process.c 2004-09-24 10:14:09.000000000 +1000
+++ working-2.6/arch/ppc64/kernel/process.c 2004-09-27 15:58:57.422805488 +1000
@@ -410,7 +410,7 @@
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: working-2.6/arch/ppc64/kernel/sys_ppc32.c
===================================================================
--- working-2.6.orig/arch/ppc64/kernel/sys_ppc32.c 2004-09-24 10:14:09.000000000 +1000
+++ working-2.6/arch/ppc64/kernel/sys_ppc32.c 2004-09-27 15:59:11.094856016 +1000
@@ -642,7 +642,7 @@
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;
}
/*
--
David Gibson | For every complex problem there is a
david AT gibson.dropbear.id.au | solution which is simple, neat and
| wrong.
http://www.ozlabs.org/people/dgibson
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-28 5:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-28 5:52 [TRIVIAL, PPC64] Squash childregs warnings David Gibson
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®