From nobody Sat Nov 15 22:35:14 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 A039725D1FE for ; Tue, 20 May 2025 06:41:56 +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=1747723316; cv=none; b=LTTvdrJH0M4KDxom3aN5D4o3VLg7ShVnrv8cEPxoFu5WTHhFab334Mnx8sU7ESx4VVJIrx2swgVfm8m9GvAccG1K0YJs6pvQEVSCOGS4h7Y1TzKGhtaNycwHdoZ3vcLsCwfX0wKD/1jNXkidQ8ZY0iIoBajhXyKLSub86dse1iA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747723316; c=relaxed/simple; bh=y+91L8zFi/kS/qXA1N6gYpa+EDi9svLMUkTanEYBrfU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gRxOZTvisplqnqEojFmzEyPW2KYP7Ig3IfCF19b7NtzN68vSmHMh7odJs0hFvGCvv1O1G2MXfdptCmTF7QaFltLXn1aWCAVQqF4RKaeGRst3Lf7gYOkfNn3OIfRjqWt+uY/XUHDtv2tGUuBL+qDiqIi5RwiLLtvDEcnfSTlQkkY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fNzIFK2k; 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="fNzIFK2k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25437C116D0; Tue, 20 May 2025 06:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747723316; bh=y+91L8zFi/kS/qXA1N6gYpa+EDi9svLMUkTanEYBrfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fNzIFK2kb9yYWDgJP7CVnT7zvWW080F6W3ydIGeOsWK23dWvXYd5MrGDVYV9yp2z1 8aclv7Yk/B9Qw0/6hWcnqctQumvoVxK9u26g6Hsu3j+N9c4NdWYmyYUDKD7sUcT7Y8 /Rh5Yy2+BwCUnf56iorKYmsrBtKxlXo2+jfu3ga7RjUIjgQ/U24ZjEKaoJCwyfna4C SVCsMj8aPbXJLecMoc8dun8ub0FWRg20GI+21qCyz0YX8i4LchbK3205FcXwDlXCiv EtJ4tTCgMe046I2rkDaJ0tVhs1nRWfc8gHn4m/tRijjgKp/fISEd1I0iq7XQWQDg4A CMCHALaxdhXvg== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1uHGfh-00000005qtE-3AaD; Tue, 20 May 2025 08:41:53 +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 v9 04/20] Revert "hw/acpi/ghes: Make ghes_record_cper_errors() static" Date: Tue, 20 May 2025 08:41:23 +0200 Message-ID: <1ee2df288540088176a1ac27c70cc2736d10ad16.1747722973.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.49.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.49.0