From: "KUWAMURA Shin'ya" Subject: [PATCH] [IOEMU] fix a compilation error if not defined MAPCACHE Date: Wed, 16 Sep 2009 15:45:02 +0900 (JST) Message-ID: <20090916.154502.191470868.kuwa@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_Sep_16_15_45_02_2009_085)--" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ----Next_Part(Wed_Sep_16_15_45_02_2009_085)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, 60dbe1d43827cf9a57b619a8736da2319489d432 cannot be compiled on ia64: exec-dm.c: In function 'cpu_physical_memory_map': exec-dm.c:805: error: 'l' undeclared (first use in this function) This patch fixes it. Signed-off-by: KUWAMURA Shin'ya -- KUWAMURA Shin'ya ----Next_Part(Wed_Sep_16_15_45_02_2009_085)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-qemu-mapcache.patch" diff --git a/i386-dm/exec-dm.c b/i386-dm/exec-dm.c index 6ee095e..d0685af 100644 --- a/i386-dm/exec-dm.c +++ b/i386-dm/exec-dm.c @@ -795,8 +795,9 @@ void *cpu_physical_memory_map(target_phys_addr_t addr, target_phys_addr_t *plen, int is_write) { + unsigned long l = 0; #ifdef MAPCACHE - unsigned long l = MCACHE_BUCKET_SIZE - (addr & (MCACHE_BUCKET_SIZE-1)); + l = MCACHE_BUCKET_SIZE - (addr & (MCACHE_BUCKET_SIZE-1)); if ((*plen) > l) *plen = l; #endif ----Next_Part(Wed_Sep_16_15_45_02_2009_085)-- Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ----Next_Part(Wed_Sep_16_15_45_02_2009_085)----