[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 04/15] hw/acpi: Rename build_all_acpi_generic_initiators() to
From: |
Jonathan Cameron |
Subject: |
[PATCH v6 04/15] hw/acpi: Rename build_all_acpi_generic_initiators() to build_acpi_generic_initiator() |
Date: |
Mon, 16 Sep 2024 18:10:09 +0100 |
Igor noted that this function only builds one instance, so was rather
misleadingly named. Fix that.
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: "Huang, Ying" <ying.huang@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
hw/acpi/acpi_generic_initiator.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/acpi/acpi_generic_initiator.c b/hw/acpi/acpi_generic_initiator.c
index 7665b16107..73bafaaaea 100644
--- a/hw/acpi/acpi_generic_initiator.c
+++ b/hw/acpi/acpi_generic_initiator.c
@@ -74,7 +74,7 @@ static void acpi_generic_initiator_class_init(ObjectClass
*oc, void *data)
acpi_generic_initiator_set_node, NULL, NULL);
}
-static int build_all_acpi_generic_initiators(Object *obj, void *opaque)
+static int build_acpi_generic_initiator(Object *obj, void *opaque)
{
MachineState *ms = MACHINE(qdev_get_machine());
AcpiGenericInitiator *gi;
@@ -111,6 +111,6 @@ static int build_all_acpi_generic_initiators(Object *obj,
void *opaque)
void build_srat_generic_pci_initiator(GArray *table_data)
{
object_child_foreach_recursive(object_get_root(),
- build_all_acpi_generic_initiators,
+ build_acpi_generic_initiator,
table_data);
}
--
2.43.0
- [PATCH v6 00/15] acpi: NUMA nodes for CXL HB as GP + complex NUMA test, Jonathan Cameron, 2024/09/16
- [PATCH v6 01/15] hw/acpi: Fix ordering of BDF in Generic Initiator PCI Device Handle., Jonathan Cameron, 2024/09/16
- [PATCH v6 02/15] hw/acpi/GI: Fix trivial parameter alignment issue., Jonathan Cameron, 2024/09/16
- [PATCH v6 03/15] hw/acpi: Move AML building code for Generic Initiators to aml_build.c, Jonathan Cameron, 2024/09/16
- [PATCH v6 04/15] hw/acpi: Rename build_all_acpi_generic_initiators() to build_acpi_generic_initiator(),
Jonathan Cameron <=
- [PATCH v6 05/15] hw/pci: Add a busnr property to pci_props and use for acpi/gi, Jonathan Cameron, 2024/09/16
- [PATCH v6 06/15] acpi/pci: Move Generic Initiator object handling into acpi/pci.*, Jonathan Cameron, 2024/09/16
- [PATCH v6 07/15] hw/pci-bridge: Add acpi_uid property to TYPE_PXB_BUS, Jonathan Cameron, 2024/09/16
- [PATCH v6 08/15] hw/i386/acpi: Use TYPE_PXB_BUS property acpi_uid for DSDT, Jonathan Cameron, 2024/09/16
- [PATCH v6 09/15] hw/pci-host/gpex-acpi: Use acpi_uid property., Jonathan Cameron, 2024/09/16
- [PATCH v6 10/15] hw/acpi: Generic Port Affinity Structure support, Jonathan Cameron, 2024/09/16
- [PATCH v6 11/15] hw/acpi: Make storage of node id uint32_t to reduce fragility, Jonathan Cameron, 2024/09/16
- [PATCH v6 12/15] hw/acpi: Generic Initiator - add missing object class property descriptions., Jonathan Cameron, 2024/09/16
- [PATCH v6 13/15] bios-tables-test: Allow for new acpihmat-generic-x test data., Jonathan Cameron, 2024/09/16
- [PATCH v6 14/15] bios-tables-test: Add complex SRAT / HMAT test for GI GP, Jonathan Cameron, 2024/09/16