Commit 06606646 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Rafael J. Wysocki

ACPI: APEI: mark apei_hest_parse() static

apei_hest_parse() is only used in hest.c, so mark it static.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
[ rjw: Minor subject and changelog edits ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent bf7fc0c3
...@@ -86,7 +86,9 @@ static int hest_esrc_len(struct acpi_hest_header *hest_hdr) ...@@ -86,7 +86,9 @@ static int hest_esrc_len(struct acpi_hest_header *hest_hdr)
return len; return len;
}; };
int apei_hest_parse(apei_hest_func_t func, void *data) 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)
{ {
struct acpi_hest_header *hest_hdr; struct acpi_hest_header *hest_hdr;
int i, rc, len; int i, rc, len;
...@@ -121,7 +123,6 @@ int apei_hest_parse(apei_hest_func_t func, void *data) ...@@ -121,7 +123,6 @@ int apei_hest_parse(apei_hest_func_t func, void *data)
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(apei_hest_parse);
/* /*
* Check if firmware advertises firmware first mode. We need FF bit to be set * Check if firmware advertises firmware first mode. We need FF bit to be set
......
...@@ -37,9 +37,6 @@ void __init acpi_hest_init(void); ...@@ -37,9 +37,6 @@ void __init acpi_hest_init(void);
static inline void acpi_hest_init(void) { return; } static inline void acpi_hest_init(void) { return; }
#endif #endif
typedef int (*apei_hest_func_t)(struct acpi_hest_header *hest_hdr, void *data);
int apei_hest_parse(apei_hest_func_t func, void *data);
int erst_write(const struct cper_record_header *record); int erst_write(const struct cper_record_header *record);
ssize_t erst_get_record_count(void); ssize_t erst_get_record_count(void);
int erst_get_record_id_begin(int *pos); int erst_get_record_id_begin(int *pos);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment