[PATCH linux-cr] fix warnings in i386 sys_eclone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux