[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250226121838.364533-2-LeoLiu-oc@zhaoxin.com>
Date: Wed, 26 Feb 2025 20:18:35 +0800
From: LeoLiu-oc <LeoLiu-oc@...oxin.com>
To: <rafael@...nel.org>, <lenb@...nel.org>, <james.morse@....com>,
<tony.luck@...el.com>, <bp@...en8.de>, <bhelgaas@...gle.com>,
<robert.moore@...el.com>, <yazen.ghannam@....com>, <avadhut.naik@....com>,
<linux-acpi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-pci@...r.kernel.org>, <acpica-devel@...ts.linux.dev>
CC: <CobeChen@...oxin.com>, <TonyWWang@...oxin.com>, <ErosZhang@...oxin.com>,
<leoliu@...oxin.com>, LeoLiuoc <LeoLiu-oc@...oxin.com>
Subject: [PATCH v5 1/4] ACPI: APEI: Move apei_hest_parse() to apei.h
From: LeoLiuoc <LeoLiu-oc@...oxin.com>
Remove static from apei_hest_parse() so that it can be called in another
file.
Signed-off-by: LeoLiuoc <LeoLiu-oc@...oxin.com>
---
drivers/acpi/apei/hest.c | 2 +-
include/acpi/apei.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c
index 20d757687e3d..35d08f4e50e6 100644
--- a/drivers/acpi/apei/hest.c
+++ b/drivers/acpi/apei/hest.c
@@ -134,7 +134,7 @@ static bool is_ghes_assist_struct(struct acpi_hest_header *hest_hdr)
typedef int (*apei_hest_func_t)(struct acpi_hest_header *hest_hdr, void *data);
-static int apei_hest_parse(apei_hest_func_t func, void *data)
+int apei_hest_parse(apei_hest_func_t func, void *data)
{
struct acpi_hest_header *hest_hdr;
int i, rc, len;
diff --git a/include/acpi/apei.h b/include/acpi/apei.h
index dc60f7db5524..b79976daa4bb 100644
--- a/include/acpi/apei.h
+++ b/include/acpi/apei.h
@@ -33,6 +33,8 @@ void __init acpi_ghes_init(void);
static inline void acpi_ghes_init(void) { }
#endif
+int apei_hest_parse(apei_hest_func_t func, void *data);
+
#ifdef CONFIG_ACPI_APEI
void __init acpi_hest_init(void);
#else
--
2.34.1
Powered by blists - more mailing lists