From: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
To: qemu-devel@nongnu.org
Cc: "Michael S . Tsirkin" <mst@redhat.com>,
Ani Sinha <anisinha@redhat.com>,
Igor Mammedov <imammedo@redhat.com>
Subject: [PATCH 1/4] hw/acpi: Make AcpiGedState const in build_ged_aml()
Date: Fri, 4 Sep 2026 01:02:42 +0200 [thread overview]
Message-ID: <20260903230245.65601-2-philmd@oss.qualcomm.com> (raw)
In-Reply-To: <20260903230245.65601-1-philmd@oss.qualcomm.com>
build_ged_aml() do not modify the AcpiGedState structure.
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
---
hw/acpi/generic_event_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/acpi/generic_event_device.c b/hw/acpi/generic_event_device.c
index 67c9e9b3e82..5225e325132 100644
--- a/hw/acpi/generic_event_device.c
+++ b/hw/acpi/generic_event_device.c
@@ -48,7 +48,7 @@ static const uint32_t ged_supported_events[] = {
void build_ged_aml(Aml *table, const char *name, HotplugHandler *hotplug_dev,
uint32_t ged_irq, AmlRegionSpace rs, hwaddr ged_base)
{
- AcpiGedState *s = ACPI_GED(hotplug_dev);
+ const AcpiGedState *s = ACPI_GED(hotplug_dev);
Aml *crs = aml_resource_template();
Aml *evt, *field;
Aml *dev = aml_device("%s", name);
--
2.53.0
next prev parent reply other threads:[~2026-09-03 23:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 23:02 [PATCH 0/4] hw/hotplug: Constify HotplugHandler Philippe Mathieu-Daudé
2026-09-03 23:02 ` Philippe Mathieu-Daudé [this message]
2026-09-03 23:02 ` [PATCH 2/4] hw/hotplug: Mark various HotplugHandlerClass variables as const Philippe Mathieu-Daudé
2026-09-03 23:02 ` [PATCH 3/4] hw/hotplug: Reduce some HotplugHandler variables scope Philippe Mathieu-Daudé
2026-09-03 23:02 ` [PATCH 4/4] hw/hotplug: Constify HotplugHandler Philippe Mathieu-Daudé
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=20260903230245.65601-2-philmd@oss.qualcomm.com \
--to=philmd@oss.qualcomm.com \
--cc=anisinha@redhat.com \
--cc=imammedo@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.