* [PATCH -next] kvm: fix const value warning on i386
[not found] <20110421132045.5af1b953.sfr@canb.auug.org.au>
@ 2011-04-21 16:09 ` Randy Dunlap
2011-04-24 7:12 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2011-04-21 16:09 UTC (permalink / raw)
To: Stephen Rothwell, Avi Kivity, Marcelo Tosatti; +Cc: linux-next, LKML, kvm
From: Randy Dunlap <randy.dunlap@oracle.com>
arch/x86/kvm/emulate.c:2598: warning: integer constant is too large for 'long' type
Signed-off-by: Randy Dunlap <randy.dunlap@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 & 0xffff000000000000)
+ if (rax & 0xffff000000000000ULL)
return emulate_gp(ctxt, 0);
return check_svme(ctxt);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] kvm: fix const value warning on i386
2011-04-21 16:09 ` [PATCH -next] kvm: fix const value warning on i386 Randy Dunlap
@ 2011-04-24 7:12 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2011-04-24 7:12 UTC (permalink / raw)
To: Randy Dunlap; +Cc: Stephen Rothwell, Marcelo Tosatti, linux-next, LKML, kvm
On 04/21/2011 07:09 PM, Randy Dunlap wrote:
> From: Randy Dunlap<randy.dunlap@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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-24 7:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20110421132045.5af1b953.sfr@canb.auug.org.au>
2011-04-21 16:09 ` [PATCH -next] kvm: fix const value warning on i386 Randy Dunlap
2011-04-24 7:12 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).