[PATCH v3 32/74] backends/hostmem-file: fix "align" property typename

Marc-André Lureau <[email protected]>
Newsgroups org.nongnu.qemu-devel
Message-ID <[email protected]>
The getter and setter use visit_type_size, not visit_type_int.

Fixes: 983768431676 ("hostmem-file: add "align" option")
Signed-off-by: Marc-André Lureau <[email protected]>
---
 backends/hostmem-file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backends/hostmem-file.c b/backends/hostmem-file.c
index 52b62f715334..39a46d353839 100644
--- a/backends/hostmem-file.c
+++ b/backends/hostmem-file.c
@@ -275,7 +275,7 @@ file_backend_class_init(ObjectClass *oc, const void *data)
         file_memory_backend_get_discard_data, file_memory_backend_set_discard_data);
     object_class_property_add_str(oc, "mem-path",
         get_mem_path, set_mem_path);
-    object_class_property_add(oc, "align", "int",
+    object_class_property_add(oc, "align", "size",
         file_memory_backend_get_align,
         file_memory_backend_set_align,
         NULL, NULL);

-- 
2.55.0.543.g5ebe2ebe4ea8
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.