Patchwork [2/2] esp: add missing const on TypeInfo structures

login
register
mail settings
Submitter Hervé Poussineau
Date Aug. 2, 2012, 8:40 a.m.
Message ID <1343896830-3503-2-git-send-email-hpoussin@reactos.org>
Download mbox | patch
Permalink /patch/174704/
State New
Headers show

Comments

Hervé Poussineau - Aug. 2, 2012, 8:40 a.m.
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 hw/esp.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Andreas Färber - Aug. 2, 2012, 3:23 p.m.
Am 02.08.2012 10:40, schrieb Hervé Poussineau:
> 
> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>

Reviewed-by: Andreas Färber <afaerber@suse.de>

Thanks,
Andreas

> ---
>  hw/esp.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/esp.c b/hw/esp.c
> index c6422ad..4b00889 100644
> --- a/hw/esp.c
> +++ b/hw/esp.c
> @@ -816,7 +816,7 @@ static void sysbus_esp_class_init(ObjectClass *klass, void *data)
>      dc->vmsd = &vmstate_sysbus_esp_scsi;
>  }
>  
> -static TypeInfo sysbus_esp_info = {
> +static const TypeInfo sysbus_esp_info = {
>      .name          = "esp",
>      .parent        = TYPE_SYS_BUS_DEVICE,
>      .instance_size = sizeof(SysBusESPState),
> @@ -1178,7 +1178,7 @@ static void esp_pci_class_init(ObjectClass *klass, void *data)
>      dc->vmsd = &vmstate_esp_pci_scsi;
>  }
>  
> -static TypeInfo esp_pci_info = {
> +static const TypeInfo esp_pci_info = {
>      .name = "am53c974",
>      .parent = TYPE_PCI_DEVICE,
>      .instance_size = sizeof(PCIESPState),
>
Paolo Bonzini - Aug. 2, 2012, 3:54 p.m.
Il 02/08/2012 10:40, Hervé Poussineau ha scritto:
> 
> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
> ---
>  hw/esp.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/esp.c b/hw/esp.c
> index c6422ad..4b00889 100644
> --- a/hw/esp.c
> +++ b/hw/esp.c
> @@ -816,7 +816,7 @@ static void sysbus_esp_class_init(ObjectClass *klass, void *data)
>      dc->vmsd = &vmstate_sysbus_esp_scsi;
>  }
>  
> -static TypeInfo sysbus_esp_info = {
> +static const TypeInfo sysbus_esp_info = {
>      .name          = "esp",
>      .parent        = TYPE_SYS_BUS_DEVICE,
>      .instance_size = sizeof(SysBusESPState),
> @@ -1178,7 +1178,7 @@ static void esp_pci_class_init(ObjectClass *klass, void *data)
>      dc->vmsd = &vmstate_esp_pci_scsi;
>  }
>  
> -static TypeInfo esp_pci_info = {
> +static const TypeInfo esp_pci_info = {
>      .name = "am53c974",
>      .parent = TYPE_PCI_DEVICE,
>      .instance_size = sizeof(PCIESPState),
> 

Applied to scsi-next branch.

Paolo

Patch

diff --git a/hw/esp.c b/hw/esp.c
index c6422ad..4b00889 100644
--- a/hw/esp.c
+++ b/hw/esp.c
@@ -816,7 +816,7 @@  static void sysbus_esp_class_init(ObjectClass *klass, void *data)
     dc->vmsd = &vmstate_sysbus_esp_scsi;
 }
 
-static TypeInfo sysbus_esp_info = {
+static const TypeInfo sysbus_esp_info = {
     .name          = "esp",
     .parent        = TYPE_SYS_BUS_DEVICE,
     .instance_size = sizeof(SysBusESPState),
@@ -1178,7 +1178,7 @@  static void esp_pci_class_init(ObjectClass *klass, void *data)
     dc->vmsd = &vmstate_esp_pci_scsi;
 }
 
-static TypeInfo esp_pci_info = {
+static const TypeInfo esp_pci_info = {
     .name = "am53c974",
     .parent = TYPE_PCI_DEVICE,
     .instance_size = sizeof(PCIESPState),