[Devel] [PATCH linux-cr] fix warnings in i386 sys_eclone
Nathan Lynch
ntl at pobox.com
Tue Nov 17 13:33:24 PST 2009
With your eclone-v13-s390x.ppc.2 branch I get:
arch/x86/kernel/process_32.c: In function ‘sys_eclone’:
arch/x86/kernel/process_32.c:479: warning: cast to pointer from integer
of different size
arch/x86/kernel/process_32.c:480: warning: cast to pointer from integer
of different size
arch/x86/kernel/process_32.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c
index 161ae4e..2bb8c1e 100644
--- a/arch/x86/kernel/process_32.c
+++ b/arch/x86/kernel/process_32.c
@@ -476,8 +476,8 @@ int sys_eclone(struct pt_regs *regs)
* flags = (kca.clone_flags_high << 32) | flags_low;
*/
flags = flags_low;
- parent_tid_ptr = (int *)kca.parent_tid_ptr;
- child_tid_ptr = (int *)kca.child_tid_ptr;
+ parent_tid_ptr = (int *)(unsigned long)kca.parent_tid_ptr;
+ child_tid_ptr = (int *)(unsigned long)kca.child_tid_ptr;
stack_size = (unsigned long)kca.child_stack_size;
if (stack_size)
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list