From patchwork Sat Feb 5 09:27:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 81996 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3ECFBB7125 for ; Sat, 5 Feb 2011 20:31:29 +1100 (EST) Received: from localhost ([127.0.0.1]:46339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PleUI-0008N8-H8 for incoming@patchwork.ozlabs.org; Sat, 05 Feb 2011 04:31:26 -0500 Received: from [140.186.70.92] (port=49681 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PleQh-0006tO-TJ for qemu-devel@nongnu.org; Sat, 05 Feb 2011 04:27:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PleQc-00025h-RO for qemu-devel@nongnu.org; Sat, 05 Feb 2011 04:27:43 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:50845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PleQc-00025b-IM for qemu-devel@nongnu.org; Sat, 05 Feb 2011 04:27:38 -0500 Received: from tsrv.tls.msk.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 02784A0B45 for ; Sat, 5 Feb 2011 12:27:36 +0300 (MSK) (envelope-from mjt@tls.msk.ru) Received: from gandalf.tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.tls.msk.ru (Postfix) with ESMTP id D23091D; Sat, 5 Feb 2011 12:27:35 +0300 (MSK) Received: by gandalf.tls.msk.ru (Postfix, from userid 1000) id 201CB12B63; Sat, 5 Feb 2011 12:27:35 +0300 (MSK) From: Michael Tokarev To: qemu-devel@nongnu.org Message-Id: <20110205092735.201CB12B63@gandalf.tls.msk.ru> Date: Sat, 5 Feb 2011 12:27:35 +0300 (MSK) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 86.62.121.231 Subject: [Qemu-devel] [trivial PATCH 0.14+] fix compile error on i386 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org When compiling on i386 (32bit) compiler choles on this: CC x86_64-softmmu/helper.o cc1: warnings being treated as errors target-i386/helper.c: In function 'cpu_inject_x86_mce': target-i386/helper.c:1153: error: integer constant is too large for 'long' type qemu_inject_x86_mce() accepts uint64_t as 3rd arg, so we have to add ULL to fix the invocation. Signed-Off-By: Michael Tokarev --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1152,3 +1152,3 @@ - qemu_inject_x86_mce(env, 1, 0xa000000000000000, 0, 0, 0); + qemu_inject_x86_mce(env, 1, 0xa000000000000000ULL, 0, 0, 0); }