modules: add virtio-gpu module annotations

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jose R. Ziviani <jziviani@suse.de>
Message-Id: <20210624103836.2382472-7-kraxel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Gerd Hoffmann 2021-06-24 12:38:08 +02:00 committed by Paolo Bonzini
parent ec604e0a8a
commit 561d0f4568
10 changed files with 18 additions and 0 deletions

View File

@ -43,6 +43,7 @@ static const VirtioPCIDeviceTypeInfo vhost_user_gpu_pci_info = {
.instance_size = sizeof(VhostUserGPUPCI), .instance_size = sizeof(VhostUserGPUPCI),
.instance_init = vhost_user_gpu_pci_initfn, .instance_init = vhost_user_gpu_pci_initfn,
}; };
module_obj(TYPE_VHOST_USER_GPU_PCI);
static void vhost_user_gpu_pci_register_types(void) static void vhost_user_gpu_pci_register_types(void)
{ {

View File

@ -598,6 +598,7 @@ static const TypeInfo vhost_user_gpu_info = {
.instance_finalize = vhost_user_gpu_instance_finalize, .instance_finalize = vhost_user_gpu_instance_finalize,
.class_init = vhost_user_gpu_class_init, .class_init = vhost_user_gpu_class_init,
}; };
module_obj(TYPE_VHOST_USER_GPU);
static void vhost_user_gpu_register_types(void) static void vhost_user_gpu_register_types(void)
{ {

View File

@ -44,6 +44,7 @@ static const VirtioPCIDeviceTypeInfo vhost_user_vga_info = {
.instance_size = sizeof(VhostUserVGA), .instance_size = sizeof(VhostUserVGA),
.instance_init = vhost_user_vga_inst_initfn, .instance_init = vhost_user_vga_inst_initfn,
}; };
module_obj(TYPE_VHOST_USER_VGA);
static void vhost_user_vga_register_types(void) static void vhost_user_vga_register_types(void)
{ {

View File

@ -256,6 +256,7 @@ static const TypeInfo virtio_gpu_base_info = {
.class_init = virtio_gpu_base_class_init, .class_init = virtio_gpu_base_class_init,
.abstract = true .abstract = true
}; };
module_obj(TYPE_VIRTIO_GPU_BASE);
static void static void
virtio_register_types(void) virtio_register_types(void)

View File

@ -154,6 +154,7 @@ static const TypeInfo virtio_gpu_gl_info = {
.instance_size = sizeof(VirtIOGPUGL), .instance_size = sizeof(VirtIOGPUGL),
.class_init = virtio_gpu_gl_class_init, .class_init = virtio_gpu_gl_class_init,
}; };
module_obj(TYPE_VIRTIO_GPU_GL);
static void virtio_register_types(void) static void virtio_register_types(void)
{ {
@ -161,3 +162,5 @@ static void virtio_register_types(void)
} }
type_init(virtio_register_types) type_init(virtio_register_types)
module_dep("hw-display-virtio-gpu");

View File

@ -46,6 +46,7 @@ static const VirtioPCIDeviceTypeInfo virtio_gpu_gl_pci_info = {
.instance_size = sizeof(VirtIOGPUGLPCI), .instance_size = sizeof(VirtIOGPUGLPCI),
.instance_init = virtio_gpu_gl_initfn, .instance_init = virtio_gpu_gl_initfn,
}; };
module_obj(TYPE_VIRTIO_GPU_GL_PCI);
static void virtio_gpu_gl_pci_register_types(void) static void virtio_gpu_gl_pci_register_types(void)
{ {
@ -53,3 +54,5 @@ static void virtio_gpu_gl_pci_register_types(void)
} }
type_init(virtio_gpu_gl_pci_register_types) type_init(virtio_gpu_gl_pci_register_types)
module_dep("hw-display-virtio-gpu-pci");

View File

@ -64,6 +64,7 @@ static const TypeInfo virtio_gpu_pci_base_info = {
.class_init = virtio_gpu_pci_base_class_init, .class_init = virtio_gpu_pci_base_class_init,
.abstract = true .abstract = true
}; };
module_obj(TYPE_VIRTIO_GPU_PCI_BASE);
#define TYPE_VIRTIO_GPU_PCI "virtio-gpu-pci" #define TYPE_VIRTIO_GPU_PCI "virtio-gpu-pci"
typedef struct VirtIOGPUPCI VirtIOGPUPCI; typedef struct VirtIOGPUPCI VirtIOGPUPCI;
@ -90,6 +91,7 @@ static const VirtioPCIDeviceTypeInfo virtio_gpu_pci_info = {
.instance_size = sizeof(VirtIOGPUPCI), .instance_size = sizeof(VirtIOGPUPCI),
.instance_init = virtio_gpu_initfn, .instance_init = virtio_gpu_initfn,
}; };
module_obj(TYPE_VIRTIO_GPU_PCI);
static void virtio_gpu_pci_register_types(void) static void virtio_gpu_pci_register_types(void)
{ {

View File

@ -1427,6 +1427,7 @@ static const TypeInfo virtio_gpu_info = {
.class_size = sizeof(VirtIOGPUClass), .class_size = sizeof(VirtIOGPUClass),
.class_init = virtio_gpu_class_init, .class_init = virtio_gpu_class_init,
}; };
module_obj(TYPE_VIRTIO_GPU);
static void virtio_register_types(void) static void virtio_register_types(void)
{ {

View File

@ -36,6 +36,7 @@ static VirtioPCIDeviceTypeInfo virtio_vga_gl_info = {
.instance_size = sizeof(VirtIOVGAGL), .instance_size = sizeof(VirtIOVGAGL),
.instance_init = virtio_vga_gl_inst_initfn, .instance_init = virtio_vga_gl_inst_initfn,
}; };
module_obj(TYPE_VIRTIO_VGA_GL);
static void virtio_vga_register_types(void) static void virtio_vga_register_types(void)
{ {
@ -45,3 +46,5 @@ static void virtio_vga_register_types(void)
} }
type_init(virtio_vga_register_types) type_init(virtio_vga_register_types)
module_dep("hw-display-virtio-vga");

View File

@ -239,6 +239,7 @@ static TypeInfo virtio_vga_base_info = {
.class_init = virtio_vga_base_class_init, .class_init = virtio_vga_base_class_init,
.abstract = true, .abstract = true,
}; };
module_obj(TYPE_VIRTIO_VGA_BASE);
#define TYPE_VIRTIO_VGA "virtio-vga" #define TYPE_VIRTIO_VGA "virtio-vga"
@ -268,6 +269,7 @@ static VirtioPCIDeviceTypeInfo virtio_vga_info = {
.instance_size = sizeof(VirtIOVGA), .instance_size = sizeof(VirtIOVGA),
.instance_init = virtio_vga_inst_initfn, .instance_init = virtio_vga_inst_initfn,
}; };
module_obj(TYPE_VIRTIO_VGA);
static void virtio_vga_register_types(void) static void virtio_vga_register_types(void)
{ {