Skip to contentSkip to conversation

fix a compilation error if not defined MAPCACHE

PATCH New KUWAMURA Shin'ya 1 participant 1 message Sep 16, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix a compilation error if not defined MAPCACHE

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.

Signature · 1 line
  KUWAMURA Shin'ya
i386-dm/exec-dm.c +2 -1
index 6ee095e..d0685af 100644
@@ -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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel