From: Nathan Lynch Subject: [PATCH 1/3] checkpoint/powerpc: fix 32-bit build Date: Fri, 4 Dec 2009 20:48:25 -0600 Message-ID: <1259981307-24936-2-git-send-email-ntl@pobox.com> References: <1259981307-24936-1-git-send-email-ntl@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1259981307-24936-1-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org Need to cast u64 to unsigned long before casting it to a pointer type. Signed-off-by: Nathan Lynch --- 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