Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <hch@lst.de>
[ rjw: Minor subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Christoph Hellwig and committed by
Rafael J. Wysocki
06606646 bf7fc0c3

+3 -5
+3 -2
drivers/acpi/apei/hest.c
··· 86 86 return len; 87 87 }; 88 88 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) 90 92 { 91 93 struct acpi_hest_header *hest_hdr; 92 94 int i, rc, len; ··· 123 121 124 122 return 0; 125 123 } 126 - EXPORT_SYMBOL_GPL(apei_hest_parse); 127 124 128 125 /* 129 126 * Check if firmware advertises firmware first mode. We need FF bit to be set
-3
include/acpi/apei.h
··· 37 37 static inline void acpi_hest_init(void) { return; } 38 38 #endif 39 39 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 - 43 40 int erst_write(const struct cper_record_header *record); 44 41 ssize_t erst_get_record_count(void); 45 42 int erst_get_record_id_begin(int *pos);