From: Ian Jackson Subject: Re: [PATCH] xenalyze: add missing casts to fix 64bit build Date: Thu, 12 Jan 2012 17:56:19 +0000 Message-ID: <20239.7875.692092.499697@mariner.uk.xensource.com> References: <94f71dded5ab5a31224b.1326376371@probook.site> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <94f71dded5ab5a31224b.1326376371@probook.site> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Olaf Hering Cc: George Dunlap , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("[Xen-devel] [PATCH] xenalyze: add missing casts to fix 64bit build"): > xenalyze: add missing casts to fix 64bit build > > xenalyze.c: In function 'hvm_mmio_summary': > xenalyze.c:3728: error: cast from pointer to integer of different size ... > - int reason=(int)data; > + int reason=(long)data; ... > reason=NONPF_MMIO_NPF; > - hvm_set_summary_handler(h, hvm_mmio_summary, (void *)reason); > + hvm_set_summary_handler(h, hvm_mmio_summary, (void *)(long)reason); This is really quite ugly. But I'll leave George to decide what should be done ... Ian.