[Spice-devel] [spice-protocol PATCH 29/46] qxlhw: qxl.h: remove virtual_address

Alon Levy alevy at redhat.com
Tue Apr 10 04:50:25 PDT 2012


---
 src/qxl.h |   12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/qxl.h b/src/qxl.h
index 7cdf787..585f204 100644
--- a/src/qxl.h
+++ b/src/qxl.h
@@ -233,18 +233,6 @@ physical_address (qxl_screen_t *qxl, void *virtual, uint8_t slot_id)
 }
 
 static inline void *
-virtual_address (qxl_screen_t *qxl, void *physical, uint8_t slot_id)
-{
-    qxl_memslot_t *p_slot = &(qxl->mem_slots[slot_id]);
-    unsigned long virt;
-
-    virt = ((unsigned long)physical) & qxl->va_slot_mask;
-    virt += p_slot->start_virt_addr;
-
-    return (void *)virt;
-}
-
-static inline void *
 u64_to_pointer (uint64_t u)
 {
     return (void *)(unsigned long)u;
-- 
1.7.9.3



More information about the Spice-devel mailing list