Skip to content

Commit

Permalink
ACPI: APEI: rename ghes_init() with an "acpi_" prefix
Browse files Browse the repository at this point in the history
ghes_init() sticks out in acpi_init() because it is the only functions
without an "acpi_" prefix.

Rename ghes_init with an "acpi_" prefix, then all looks fine.

Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Shuai Xue authored and Rafael J. Wysocki committed Mar 3, 2022
1 parent dc4e8c0 commit 27e932a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/acpi/apei/ghes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ static struct platform_driver ghes_platform_driver = {
.remove = ghes_remove,
};

void __init ghes_init(void)
void __init acpi_ghes_init(void)
{
int rc;

Expand Down
2 changes: 1 addition & 1 deletion drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ static int __init acpi_init(void)
pci_mmcfg_late_init();
acpi_iort_init();
acpi_hest_init();
ghes_init();
acpi_ghes_init();
acpi_scan_init();
acpi_ec_init();
acpi_debugfs_init();
Expand Down
4 changes: 2 additions & 2 deletions include/acpi/apei.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ extern int hest_disable;
extern int erst_disable;
#ifdef CONFIG_ACPI_APEI_GHES
extern bool ghes_disable;
void __init ghes_init(void);
void __init acpi_ghes_init(void);
#else
#define ghes_disable 1
static inline void ghes_init(void) { }
static inline void acpi_ghes_init(void) { }
#endif

#ifdef CONFIG_ACPI_APEI
Expand Down

0 comments on commit 27e932a

Please sign in to comment.