mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
savevm: Remove all the unneeded version_minimum_id_old (ppc)
After previous Peter patch, they are redundant. This way we don't assign them except when needed. Once there, there were lots of case where the ".fields" indentation was wrong: .fields = (VMStateField []) { and .fields = (VMStateField []) { Change all the combinations to: .fields = (VMStateField[]){ The biggest problem (appart from aesthetics) was that checkpatch complained when we copy&pasted the code from one place to another. Signed-off-by: Juan Quintela <quintela@redhat.com> Acked-by: Alexey Kardashevskiy <aik@ozlabs.ru>
This commit is contained in:
parent
06a59afac4
commit
3aff6c2fea
14 changed files with 37 additions and 73 deletions
|
@ -659,8 +659,7 @@ static const VMStateDescription vmstate_spapr_pci_lsi = {
|
|||
.name = "spapr_pci/lsi",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.minimum_version_id_old = 1,
|
||||
.fields = (VMStateField []) {
|
||||
.fields = (VMStateField[]) {
|
||||
VMSTATE_UINT32_EQUAL(irq, struct spapr_pci_lsi),
|
||||
|
||||
VMSTATE_END_OF_LIST()
|
||||
|
@ -671,8 +670,7 @@ static const VMStateDescription vmstate_spapr_pci_msi = {
|
|||
.name = "spapr_pci/lsi",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.minimum_version_id_old = 1,
|
||||
.fields = (VMStateField []) {
|
||||
.fields = (VMStateField[]) {
|
||||
VMSTATE_UINT32(config_addr, struct spapr_pci_msi),
|
||||
VMSTATE_UINT32(irq, struct spapr_pci_msi),
|
||||
VMSTATE_UINT32(nvec, struct spapr_pci_msi),
|
||||
|
@ -685,8 +683,7 @@ static const VMStateDescription vmstate_spapr_pci = {
|
|||
.name = "spapr_pci",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.minimum_version_id_old = 1,
|
||||
.fields = (VMStateField []) {
|
||||
.fields = (VMStateField[]) {
|
||||
VMSTATE_UINT64_EQUAL(buid, sPAPRPHBState),
|
||||
VMSTATE_UINT32_EQUAL(dma_liobn, sPAPRPHBState),
|
||||
VMSTATE_UINT64_EQUAL(mem_win_addr, sPAPRPHBState),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue