[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20221027031539.2855883-1-LeoLiu-oc@zhaoxin.com>
Date: Thu, 27 Oct 2022 11:15:39 +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>, <robert.moore@...el.com>,
<ying.huang@...el.com>, <rdunlap@...radead.org>,
<bhelgaas@...gle.com>, <linux-acpi@...r.kernel.org>,
<linux-pci@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<devel@...ica.org>
CC: <CobeChen@...oxin.com>, <TonyWWang@...oxin.com>,
<ErosZhang@...oxin.com>, leoliu-oc <leoliu-oc@...oxin.com>
Subject: [PATCH 2/5] ACPI/APEI: remove static from apei_hest_parse()
From: leoliu-oc <leoliu-oc@...oxin.com>
The purpose used the func apei_hest_parse() in pci-acpi.c
to parse the PCI Express Root Port/Device/Bridge AER Structure.
Signed-off-by: leoliu-oc <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 0bfdc18758f5..3795690e8f0f 100644
--- a/drivers/acpi/apei/hest.c
+++ b/drivers/acpi/apei/hest.c
@@ -130,7 +130,7 @@ static inline bool hest_match_pci(struct acpi_hest_header *hest_hdr,
return false;
}
-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 8a0b2b9edbaf..e7896491ae52 100644
--- a/include/acpi/apei.h
+++ b/include/acpi/apei.h
@@ -37,9 +37,11 @@ typedef int (*apei_hest_func_t)(struct acpi_hest_header *hest_hdr, void *data);
#ifdef CONFIG_ACPI_APEI
void __init acpi_hest_init(void);
+int apei_hest_parse(apei_hest_func_t func, void *data);
int apei_hest_parse_aer(struct acpi_hest_header *hest_hdr, void *data);
#else
static inline void acpi_hest_init(void) { }
+static inline int apei_hest_parse(apei_hest_func_t func, void *data) { return -EINVAL; }
static inline int apei_hest_parse_aer(struct acpi_hest_header *hest_hdr, void *data)
{
return -EINVAL;
--
2.20.1
Powered by blists - more mailing lists