]> git.proxmox.com Git - mirror_qemu.git/blobdiff - contrib/vhost-user-gpu/vugbm.c
Replace qemu_real_host_page variables with inlined functions
[mirror_qemu.git] / contrib / vhost-user-gpu / vugbm.c
index fb15d0372c25e6b519a3c13f394b59b906ecdc9c..503d0a4566f8f1849633cd6965ce1ab2289af600 100644 (file)
@@ -53,7 +53,7 @@ struct udmabuf_create {
 static size_t
 udmabuf_get_size(struct vugbm_buffer *buf)
 {
-    return ROUND_UP(buf->width * buf->height * 4, qemu_real_host_page_size);
+    return ROUND_UP(buf->width * buf->height * 4, qemu_real_host_page_size());
 }
 
 static bool