Skip to contentSkip to conversation

Squash childregs warnings

TRIVIAL, PPC64 David Gibson 1 participant 1 message Sep 28, 2004

lore
Share & tools
lore
#0 lore raw

Andrew, please apply.

Squash a couple of "pointer from integer" warnings recently introduced.

arch/ppc64/kernel/process.c +1 -1
Index: working-2.6/arch/ppc64/kernel/process.c
===================================================================
@@ -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;
arch/ppc64/kernel/sys_ppc32.c +1 -1
Index: working-2.6/arch/ppc64/kernel/sys_ppc32.c
===================================================================
@@ -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;
 	}
 
 	/*
Signature · 4 lines
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