ACPI: APEI: mark apei_hest_parse() static
authorChristoph Hellwig <hch@lst.de>
Wed, 27 Oct 2021 06:54:38 +0000 (08:54 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Oct 2021 18:34:47 +0000 (20:34 +0200)
apei_hest_parse() is only used in hest.c, so mark it static.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[ rjw: Minor subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/hest.c
include/acpi/apei.h

index 277f00b288d143cfffabfa2faefec9968073058c..0edc1ed476737e29bc62a842909d1d95eee3ce91 100644 (file)
@@ -86,7 +86,9 @@ static int hest_esrc_len(struct acpi_hest_header *hest_hdr)
        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;
        int i, rc, len;
@@ -121,7 +123,6 @@ int apei_hest_parse(apei_hest_func_t func, void *data)
 
        return 0;
 }
-EXPORT_SYMBOL_GPL(apei_hest_parse);
 
 /*
  * Check if firmware advertises firmware first mode. We need FF bit to be set
index 680f80960c3dcf36f6dac83c4061cce7f5103f1b..ece0a8af2bae7f2a6c7647611351b6fbf57a3bfd 100644 (file)
@@ -37,9 +37,6 @@ void __init acpi_hest_init(void);
 static inline void acpi_hest_init(void) { return; }
 #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);
 ssize_t erst_get_record_count(void);
 int erst_get_record_id_begin(int *pos);