qemu-ppc
[Top][All Lists]
Advanced

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

Re: [PATCH 3/4] include/hw/ppc: Don't include hw/pci-host/pnv_phb.h from


From: Markus Armbruster
Subject: Re: [PATCH 3/4] include/hw/ppc: Don't include hw/pci-host/pnv_phb.h from pnv.h
Date: Mon, 12 Dec 2022 08:28:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Cédric Le Goater <clg@kaod.org> writes:

> On 12/10/22 12:21, Markus Armbruster wrote:
>> The next commit needs to include hw/ppc/pnv.h from
>> hw/pci-host/pnv_phb.h.  Avoid an inclusion loop.
>> Signed-off-by: Markus Armbruster <armbru@redhat.com>
>
>
> Reviewed-by: Cédric Le Goater <clg@kaod.org>
>
> Thanks,
>
> C.
>
> (one comment below)
>
>> ---
>>   hw/pci-host/pnv_phb.h          | 1 +
>>   include/hw/pci-host/pnv_phb4.h | 3 ++-
>>   include/hw/ppc/pnv.h           | 3 ++-
>>   hw/ppc/pnv_psi.c               | 1 +
>>   4 files changed, 6 insertions(+), 2 deletions(-)
>> diff --git a/hw/pci-host/pnv_phb.h b/hw/pci-host/pnv_phb.h
>> index 58ebd6dd0f..202de8796c 100644
>> --- a/hw/pci-host/pnv_phb.h
>> +++ b/hw/pci-host/pnv_phb.h
>> @@ -12,6 +12,7 @@
>>     #include "hw/pci/pcie_host.h"
>>   #include "hw/pci/pcie_port.h"
>> +#include "hw/ppc/pnv.h"
>
> Now that the chip definitions have been extrated in pnv_chip.h, I find
> it curious that we need to include pnv.h since it should only contain
> machine definitions. No big deal, I will take a look later. You did
> the hard part and thanks for that.

I checked again, and it looks like an accident.  I figure I put it
there, then improved an earlier patch, which made it unneccessary.  I'll
take it out.  Thanks!




reply via email to

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