On 04.06.25 13:53, Zhenzhong Duan wrote:
VirtIOPMEMClass's parent is VirtioDeviceClass rather than VirtIODevice.

Fixes: 5f503cd9f388 ("virtio-pmem: add virtio device")
Suggested-by: David Hildenbrand <da...@redhat.com>

Reported-by: might be better, with

Closes:

linking to my mail

Signed-off-by: Zhenzhong Duan <zhenzhong.d...@intel.com>
---
  include/hw/virtio/virtio-pmem.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/hw/virtio/virtio-pmem.h b/include/hw/virtio/virtio-pmem.h
index fc4fd1f7fe..9cce600d0b 100644
--- a/include/hw/virtio/virtio-pmem.h
+++ b/include/hw/virtio/virtio-pmem.h
@@ -36,7 +36,7 @@ struct VirtIOPMEM {
struct VirtIOPMEMClass {
      /* private */
-    VirtIODevice parent;
+    VirtioDeviceClass parent_class;

Reviewed-by: David Hildenbrand <da...@redhat.com>

--
Cheers,

David / dhildenb


Reply via email to