qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 02/34] tests/qgraph: rename qpci_init_pc func


From: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH v2 02/34] tests/qgraph: rename qpci_init_pc functions
Date: Mon, 6 Aug 2018 17:04:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 06/08/2018 16:33, Emanuele Giuseppe Esposito wrote:
> Rename qpci_init_pc in qpci_new_pc, since the function actually
> allocates a new QPCIBusPC and initialize it.
> 
> Signed-off-by: Emanuele Giuseppe Esposito <address@hidden>
> ---
>  tests/e1000e-test.c       | 2 +-
>  tests/i440fx-test.c       | 2 +-
>  tests/ide-test.c          | 2 +-
>  tests/libqos/ahci.c       | 2 +-
>  tests/libqos/libqos-pc.c  | 2 +-
>  tests/libqos/pci-pc.c     | 2 +-
>  tests/libqos/pci-pc.h     | 9 ++++++++-
>  tests/q35-test.c          | 4 ++--
>  tests/rtl8139-test.c      | 2 +-
>  tests/sdhci-test.c        | 2 +-
>  tests/tco-test.c          | 2 +-
>  tests/usb-hcd-ehci-test.c | 2 +-
>  tests/vhost-user-test.c   | 2 +-
>  13 files changed, 21 insertions(+), 14 deletions(-)
> 
...
> diff --git a/tests/libqos/libqos-pc.c b/tests/libqos/libqos-pc.c
> index a9c1aceaa7..72b3eb46f5 100644
> --- a/tests/libqos/libqos-pc.c
> +++ b/tests/libqos/libqos-pc.c
> @@ -6,7 +6,7 @@
>  static QOSOps qos_ops = {
>      .init_allocator = pc_alloc_init_flags,
>      .uninit_allocator = pc_alloc_uninit,
> -    .qpci_init = qpci_init_pc,
> +    .qpci_init = qpci_pc_new,
>      .qpci_free = qpci_free_pc,
>      .shutdown = qtest_pc_shutdown,
>  };

I think you should also rename the "qpci_init" field to "qpci_new".
And as we have "qpci_free_pc", it should be "qpci_new_pc", and you
should do the same for qpci_init_spapr -> qpci_new_spapr.

Thanks,
Laurent



reply via email to

[Prev in Thread] Current Thread [Next in Thread]