Skip to content

Commit 0660664

Browse files
Christoph Hellwigrafaeljw
authored andcommitted
ACPI: APEI: mark apei_hest_parse() static
apei_hest_parse() is only used in hest.c, so mark it static. Signed-off-by: Christoph Hellwig <[email protected]> [ rjw: Minor subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent bf7fc0c commit 0660664

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

drivers/acpi/apei/hest.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ static int hest_esrc_len(struct acpi_hest_header *hest_hdr)
8686
return len;
8787
};
8888

89-
int apei_hest_parse(apei_hest_func_t func, void *data)
89+
typedef int (*apei_hest_func_t)(struct acpi_hest_header *hest_hdr, void *data);
90+
91+
static int apei_hest_parse(apei_hest_func_t func, void *data)
9092
{
9193
struct acpi_hest_header *hest_hdr;
9294
int i, rc, len;
@@ -121,7 +123,6 @@ int apei_hest_parse(apei_hest_func_t func, void *data)
121123

122124
return 0;
123125
}
124-
EXPORT_SYMBOL_GPL(apei_hest_parse);
125126

126127
/*
127128
* Check if firmware advertises firmware first mode. We need FF bit to be set

include/acpi/apei.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ void __init acpi_hest_init(void);
3737
static inline void acpi_hest_init(void) { return; }
3838
#endif
3939

40-
typedef int (*apei_hest_func_t)(struct acpi_hest_header *hest_hdr, void *data);
41-
int apei_hest_parse(apei_hest_func_t func, void *data);
42-
4340
int erst_write(const struct cper_record_header *record);
4441
ssize_t erst_get_record_count(void);
4542
int erst_get_record_id_begin(int *pos);

0 commit comments

Comments
 (0)