]> git.proxmox.com Git - mirror_qemu.git/blobdiff - memory_mapping.c
Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
[mirror_qemu.git] / memory_mapping.c
index 724dd0b417931e6d5d53f01f9f7a1af1b9a2c345..e3ec70624f871db4fc26494cad17b79034feaabb 100644 (file)
@@ -223,7 +223,7 @@ static void guest_phys_blocks_region_add(MemoryListener *listener,
     if (!QTAILQ_EMPTY(&g->list->head)) {
         hwaddr predecessor_size;
 
-        predecessor = QTAILQ_LAST(&g->list->head, GuestPhysBlockHead);
+        predecessor = QTAILQ_LAST(&g->list->head);
         predecessor_size = predecessor->target_end - predecessor->target_start;
 
         /* the memory API guarantees monotonically increasing traversal */