Re: [PATCH -next] kvm: fix const value warning on i386

2011-04-24 Thread Avi Kivity

On 04/21/2011 07:09 PM, Randy Dunlap wrote:

From: Randy Dunlaprandy.dun...@oracle.com

arch/x86/kvm/emulate.c:2598: warning: integer constant is too large for 'long' 
type


Applied, thanks.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH -next] kvm: fix const value warning on i386

2011-04-21 Thread Randy Dunlap
From: Randy Dunlap randy.dun...@oracle.com

arch/x86/kvm/emulate.c:2598: warning: integer constant is too large for 'long' 
type

Signed-off-by: Randy Dunlap randy.dun...@oracle.com
---
 arch/x86/kvm/emulate.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20110421.orig/arch/x86/kvm/emulate.c
+++ linux-next-20110421/arch/x86/kvm/emulate.c
@@ -2595,7 +2595,7 @@ static int check_svme_pa(struct x86_emul
u64 rax = kvm_register_read(ctxt-vcpu, VCPU_REGS_RAX);
 
/* Valid physical address? */
-   if (rax  0x)
+   if (rax  0xULL)
return emulate_gp(ctxt, 0);
 
return check_svme(ctxt);
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html