From patchwork Thu Apr 21 16:09:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 725191 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3LG9rj4008942 for ; Thu, 21 Apr 2011 16:09:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754773Ab1DUQJh (ORCPT ); Thu, 21 Apr 2011 12:09:37 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:33592 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753462Ab1DUQJg (ORCPT ); Thu, 21 Apr 2011 12:09:36 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p3LG9QOm024754 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 21 Apr 2011 16:09:28 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p3LG9OVA029955 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Apr 2011 16:09:25 GMT Received: from abhmt008.oracle.com (abhmt008.oracle.com [141.146.116.17]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p3LG9Ofc017192; Thu, 21 Apr 2011 11:09:24 -0500 Received: from chimera.site (/50.53.38.135) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 Apr 2011 09:09:23 -0700 Date: Thu, 21 Apr 2011 09:09:22 -0700 From: Randy Dunlap To: Stephen Rothwell , Avi Kivity , Marcelo Tosatti Cc: linux-next@vger.kernel.org, LKML , kvm@vger.kernel.org Subject: [PATCH -next] kvm: fix const value warning on i386 Message-Id: <20110421090922.4d9a275b.randy.dunlap@oracle.com> In-Reply-To: <20110421132045.5af1b953.sfr@canb.auug.org.au> References: <20110421132045.5af1b953.sfr@canb.auug.org.au> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 X-Source-IP: acsinet15.oracle.com [141.146.126.227] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4DB056B8.0059:SCFMA922111,ss=1,fgs=0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 21 Apr 2011 16:09:53 +0000 (UTC) From: Randy Dunlap arch/x86/kvm/emulate.c:2598: warning: integer constant is too large for 'long' type Signed-off-by: Randy Dunlap --- arch/x86/kvm/emulate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 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);