Make all static TypeInfos const
Since 39bffca2 (qdev: register all types natively through QEMU Object Model), TypeInfo as used in the common, non-iterative pattern is no longer amended with information and should therefore be const. Fix the documented QOM examples: sed -i 's/static TypeInfo/static const TypeInfo/g' include/qom/object.h Since frequently the wrong examples are being copied by contributors of new devices, fix all types in the tree: sed -i 's/^static TypeInfo/static const TypeInfo/g' */*.c sed -i 's/^static TypeInfo/static const TypeInfo/g' */*/*.c This also avoids to piggy-back these changes onto real functional changes or other refactorings. Signed-off-by:Andreas Färber <afaerber@suse.de> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
Showing
- backends/rng-egd.c 1 addition, 1 deletionbackends/rng-egd.c
- backends/rng-random.c 1 addition, 1 deletionbackends/rng-random.c
- backends/rng.c 1 addition, 1 deletionbackends/rng.c
- hw/9pfs/virtio-9p-device.c 1 addition, 1 deletionhw/9pfs/virtio-9p-device.c
- hw/a15mpcore.c 1 addition, 1 deletionhw/a15mpcore.c
- hw/a9mpcore.c 1 addition, 1 deletionhw/a9mpcore.c
- hw/ac97.c 1 addition, 1 deletionhw/ac97.c
- hw/acpi_piix4.c 1 addition, 1 deletionhw/acpi_piix4.c
- hw/ads7846.c 1 addition, 1 deletionhw/ads7846.c
- hw/apb_pci.c 3 additions, 3 deletionshw/apb_pci.c
- hw/apic.c 1 addition, 1 deletionhw/apic.c
- hw/apic_common.c 1 addition, 1 deletionhw/apic_common.c
- hw/applesmc.c 1 addition, 1 deletionhw/applesmc.c
- hw/arm11mpcore.c 2 additions, 2 deletionshw/arm11mpcore.c
- hw/arm_gic.c 1 addition, 1 deletionhw/arm_gic.c
- hw/arm_gic_common.c 1 addition, 1 deletionhw/arm_gic_common.c
- hw/arm_l2x0.c 1 addition, 1 deletionhw/arm_l2x0.c
- hw/arm_mptimer.c 1 addition, 1 deletionhw/arm_mptimer.c
- hw/arm_sysctl.c 1 addition, 1 deletionhw/arm_sysctl.c
- hw/arm_timer.c 2 additions, 2 deletionshw/arm_timer.c
Loading
Please register or sign in to comment