[Devel] [PATCH 1/3] checkpoint/powerpc: fix 32-bit build

Nathan Lynch ntl at pobox.com
Fri Dec 4 18:48:25 PST 2009


Need to cast u64 to unsigned long before casting it to a pointer type.

Signed-off-by: Nathan Lynch <ntl at pobox.com>
---
 arch/powerpc/kernel/process.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index c1900b3..457c269 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -939,8 +939,8 @@ int sys_eclone(unsigned long clone_flags_low,
 
 	nr_pids = kclone_args.nr_pids;
 
-	parent_tidp = (int __user *)kclone_args.parent_tid_ptr;
-	child_tidp = (int __user *)kclone_args.child_tid_ptr;
+	parent_tidp = (int __user *)(unsigned long)kclone_args.parent_tid_ptr;
+	child_tidp = (int __user *)(unsigned long)kclone_args.child_tid_ptr;
 
 #ifdef CONFIG_PPC64
 	if (test_thread_flag(TIF_32BIT)) {
-- 
1.6.0.6

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list