From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Bernhard Beschow <shentey@gmail.com>, qemu-devel@nongnu.org
Cc: Eduardo Habkost <eduardo@habkost.net>,
Richard Henderson <richard.henderson@linaro.org>,
Paolo Bonzini <pbonzini@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Igor Mammedov <imammedo@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
Ani Sinha <anisinha@redhat.com>,
qemu-trivial@nongnu.org
Subject: Re: [PATCH 4/7] hw/i386/acpi: Declare pc_madt_cpu_entry() in 'acpi-common.h'
Date: Wed, 14 Feb 2024 07:58:11 +0100 [thread overview]
Message-ID: <17f737fa-5a2d-4465-9f53-7ef11b6287e4@linaro.org> (raw)
In-Reply-To: <35DAA6EC-1C6D-4F36-A595-A7F720D63C20@gmail.com>
On 13/2/24 19:57, Bernhard Beschow wrote:
>
>
> Am 13. Februar 2024 12:01:49 UTC schrieb "Philippe Mathieu-Daudé" <philmd@linaro.org>:
>> Since pc_madt_cpu_entry() is only used by:
>> - hw/i386/acpi-build.c // single call
>> - hw/i386/acpi-common.c // definition
>> there is no need to expose it outside of hw/i386/.
>> Declare it in "acpi-common.h".
>> acpi-build.c doesn't need "hw/i386/pc.h" anymore.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>> hw/i386/acpi-common.h | 3 +++
>> include/hw/i386/pc.h | 4 ----
>> hw/i386/acpi-common.c | 1 -
>> 3 files changed, 3 insertions(+), 5 deletions(-)
>>
>> diff --git a/hw/i386/acpi-common.h b/hw/i386/acpi-common.h
>> index b3c56ee014..e305aaac15 100644
>> --- a/hw/i386/acpi-common.h
>> +++ b/hw/i386/acpi-common.h
>> @@ -1,12 +1,15 @@
>> #ifndef HW_I386_ACPI_COMMON_H
>> #define HW_I386_ACPI_COMMON_H
>>
>> +#include "hw/boards.h"
>> #include "hw/acpi/bios-linker-loader.h"
>> #include "hw/i386/x86.h"
>>
>> /* Default IOAPIC ID */
>> #define ACPI_BUILD_IOAPIC_ID 0x0
>>
>> +void pc_madt_cpu_entry(int uid, const CPUArchIdList *apic_ids,
>
> Since the function is apparently not pc but rather x86-specific: Does it make sense to rename the function as well, e.g. to x86_madt_cpu_entry()?
I don't know much about ACPI tables. Is it?
Ani, can you confirm and do you mind posting a cleanup patch on top? :)
Regards,
Phil.
next prev parent reply other threads:[~2024-02-14 6:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-13 12:01 [PATCH 0/7] hw/i386: Cleanups around 'hw/i386/pc.h' Philippe Mathieu-Daudé
2024-02-13 12:01 ` [PATCH 1/7] target/i386/monitor: Remove unused 'hw/i386/pc.h' header Philippe Mathieu-Daudé
2024-02-13 12:01 ` [PATCH 2/7] hw/timer: Move HPET_INTCAP definition to "hpet.h" Philippe Mathieu-Daudé
2024-02-13 12:01 ` [PATCH 3/7] hw/isa/lpc_ich9: Remove unused 'hw/i386/pc.h' Philippe Mathieu-Daudé
2024-02-13 12:01 ` [PATCH 4/7] hw/i386/acpi: Declare pc_madt_cpu_entry() in 'acpi-common.h' Philippe Mathieu-Daudé
2024-02-13 18:57 ` Bernhard Beschow
2024-02-14 6:58 ` Philippe Mathieu-Daudé [this message]
2024-02-13 12:01 ` [PATCH 5/7] hw/i386/port92: Add missing 'hw/isa/isa.h' header Philippe Mathieu-Daudé
2024-02-13 12:01 ` [PATCH 6/7] hw/acpi/cpu_hotplug: Include 'pci_device.h' instead of 'pci.h' Philippe Mathieu-Daudé
2024-02-13 12:01 ` [PATCH 7/7] hw/acpi/cpu_hotplug: Include 'x86.h' instead of 'pc.h' Philippe Mathieu-Daudé
2024-02-13 14:27 ` [PATCH 0/7] hw/i386: Cleanups around 'hw/i386/pc.h' Luc Michel
2024-02-13 15:55 ` Michael S. Tsirkin
2024-02-13 16:00 ` Philippe Mathieu-Daudé
2024-02-15 19:33 ` Bernhard Beschow
2024-02-14 12:45 ` Michael Tokarev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17f737fa-5a2d-4465-9f53-7ef11b6287e4@linaro.org \
--to=philmd@linaro.org \
--cc=anisinha@redhat.com \
--cc=eduardo@habkost.net \
--cc=imammedo@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=shentey@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).