diff options
author | Gavin Shan <gshan@redhat.com> | 2025-02-14 14:16:32 +1000 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-04 14:45:34 +0100 |
commit | 611f3bdb20f7828b0813aa90d47d1275ef18329b (patch) | |
tree | 733ce68c1fe4f8456b5f412020cd200c6d829a8f /hw/acpi | |
parent | 00ad70b7fb527a80b31c8b6b1a0e7a66b0d08498 (diff) | |
download | qemu-611f3bdb20f7828b0813aa90d47d1275ef18329b.zip qemu-611f3bdb20f7828b0813aa90d47d1275ef18329b.tar.gz qemu-611f3bdb20f7828b0813aa90d47d1275ef18329b.tar.bz2 |
hw/acpi/ghes: Make ghes_record_cper_errors() static
acpi_ghes_memory_errors() is the only caller, no need to expose
the function. Besides, the last 'return' in this function isn't
necessary and remove it.
No functional changes intended.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250214041635.608012-2-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/acpi')
-rw-r--r-- | hw/acpi/ghes.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/acpi/ghes.c b/hw/acpi/ghes.c index b709c17..b85bb48 100644 --- a/hw/acpi/ghes.c +++ b/hw/acpi/ghes.c @@ -390,8 +390,8 @@ static void get_hw_error_offsets(uint64_t ghes_addr, *read_ack_register_addr = ghes_addr + sizeof(uint64_t); } -void ghes_record_cper_errors(const void *cper, size_t len, - uint16_t source_id, Error **errp) +static void ghes_record_cper_errors(const void *cper, size_t len, + uint16_t source_id, Error **errp) { uint64_t cper_addr = 0, read_ack_register_addr = 0, read_ack_register; AcpiGedState *acpi_ged_state; @@ -440,8 +440,6 @@ void ghes_record_cper_errors(const void *cper, size_t len, /* Write the generic error data entry into guest memory */ cpu_physical_memory_write(cper_addr, cper, len); - - return; } int acpi_ghes_memory_errors(uint16_t source_id, uint64_t physical_address) |