From nobody Sun Sep 28 16:34:17 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B10AA30FF29 for ; Tue, 23 Sep 2025 07:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758611060; cv=none; b=Ur7JB7YbFSHX6o8n/88krZAiePBBw8FLE2at2DkVypYS1+PoQQmto5ZUp9fpnXRRlQqTySGFhb90VL/5GaTtD3HAQXRvn/SXT9Ywd0E42AxqncvAVtqA7tgSEL6EfOM0FkK/pcNE11Hl+6wjLYTly/0uBh7ZiwwpVb5R9vVnSw4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758611060; c=relaxed/simple; bh=Mdj2a4iktIlCJVRabLqbV2B0aHf4LGa+lcTLFh4Jhus=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VbEkyBRpJy7/v1K//1TnSmrKlTbq+nZ3sDMiF+Vw8+44eULEOcmP+GXo2JzIj2tCjIhRrM8S/FJWO9LibMy0LtCE2vZT34/d+q9ILpV/m4e16NqYOwhiemy7a7YUzXYXBRvMBC3n+yxK/Fsr6G19VKMmFuore0rNoFGPhCXOlNQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G16OXmXt; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G16OXmXt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46087C2BC87; Tue, 23 Sep 2025 07:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758611060; bh=Mdj2a4iktIlCJVRabLqbV2B0aHf4LGa+lcTLFh4Jhus=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G16OXmXtDqc6+4l57ObtAhcOSuZmCwNEz+GgojLmN9KU6sIm30s0H9wR0aAzCnqiT UA/STKVb5BW8QgLKzAxCKtp9pYLP7Em6xx3r4VTcksY8cwLa4XkBfLr3v30by4Bjcp 7SqC3EmK4ibovLYkFHSKqWKHcZCLGD85LebToe8mO6napsm6a2vSI+DQ8nYlv+MqBv vP06zSpQg1SYfVncoljEl0Z2P64ZLTmhTuQ3QnAPRzw2jpzNSl2KzXGqyqnzNWtvSq uJlc4LRLwV1UTUoOTc73wxHMPP1TrLlcy8WkvEN8fLV+mWNvgFPoueEllL8cyfNPSJ eM7i6ydNIPmQQ== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1v0x4U-00000006bKO-0nh8; Tue, 23 Sep 2025 09:04:18 +0200 From: Mauro Carvalho Chehab To: Igor Mammedov , "Michael S . Tsirkin" Cc: Jonathan Cameron , Shiju Jose , qemu-arm@nongnu.org, qemu-devel@nongnu.org, Mauro Carvalho Chehab , Ani Sinha , Dongjiu Geng , linux-kernel@vger.kernel.org Subject: [PATCH v12 01/17] Revert "hw/acpi/ghes: Make ghes_record_cper_errors() static" Date: Tue, 23 Sep 2025 09:03:55 +0200 Message-ID: <14f2a888cfbf922d5f2bf94d7612114f25107d59.1758610789.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" The ghes_record_cper_errors() function was introduced to be used by other types of errors, as part of the error injection patch series. That's why it is not static. Make it non-static again to allow its usage outside ghes.c This reverts commit 611f3bdb20f7828b0813aa90d47d1275ef18329b. Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Jonathan Cameron --- hw/acpi/ghes.c | 6 ++++-- include/hw/acpi/ghes.h | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/acpi/ghes.c b/hw/acpi/ghes.c index b85bb48195a0..b709c177cdea 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 =3D ghes_addr + sizeof(uint64_t); } =20 -static void ghes_record_cper_errors(const void *cper, size_t len, - uint16_t source_id, Error **errp) +void ghes_record_cper_errors(const void *cper, size_t len, + uint16_t source_id, Error **errp) { uint64_t cper_addr =3D 0, read_ack_register_addr =3D 0, read_ack_regis= ter; AcpiGedState *acpi_ged_state; @@ -440,6 +440,8 @@ static void ghes_record_cper_errors(const void *cper, s= ize_t len, =20 /* Write the generic error data entry into guest memory */ cpu_physical_memory_write(cper_addr, cper, len); + + return; } =20 int acpi_ghes_memory_errors(uint16_t source_id, uint64_t physical_address) diff --git a/include/hw/acpi/ghes.h b/include/hw/acpi/ghes.h index 578a582203ce..39619a2457cb 100644 --- a/include/hw/acpi/ghes.h +++ b/include/hw/acpi/ghes.h @@ -75,6 +75,8 @@ void acpi_build_hest(GArray *table_data, GArray *hardware= _errors, void acpi_ghes_add_fw_cfg(AcpiGhesState *vms, FWCfgState *s, GArray *hardware_errors); int acpi_ghes_memory_errors(uint16_t source_id, uint64_t error_physical_ad= dr); +void ghes_record_cper_errors(const void *cper, size_t len, + uint16_t source_id, Error **errp); =20 /** * acpi_ghes_present: Report whether ACPI GHES table is present --=20 2.51.0