From: Heiko Carstens Date: Tue, 24 May 2011 05:51:27 +0000 (+0200) Subject: KVM: add missing void __user * cast to access_ok() call X-Git-Tag: v3.0-rc3~44^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e3bb6b6f6a0c535eb053fbf0005a8e79e053374;p=pandora-kernel.git KVM: add missing void __user * cast to access_ok() call fa3d315a "KVM: Validate userspace_addr of memslot when registered" introduced this new warning onn s390: kvm_main.c: In function '__kvm_set_memory_region': kvm_main.c:654:7: warning: passing argument 1 of '__access_ok' makes pointer from integer without a cast arch/s390/include/asm/uaccess.h:53:19: note: expected 'const void *' but argument is of type '__u64' Add the missing cast to get rid of it again... Cc: Takuya Yoshikawa Signed-off-by: Heiko Carstens Signed-off-by: Avi Kivity --- Reading git-diff-tree failed