All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shuai Xue <xueshuai@linux.alibaba.com>
To: helgaas@kernel.org, rafael@kernel.org, nathan@kernel.org
Cc: bp@alien8.de, tony.luck@intel.com, james.morse@arm.com,
	lenb@kernel.org, rjw@rjwysocki.net, bhelgaas@google.com,
	xueshuai@linux.alibaba.com, zhangliguang@linux.alibaba.com,
	zhuo.song@linux.alibaba.com, linux-kernel@vger.kernel.org,
	linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-pci@vger.kernel.org
Subject: [PATCH v8 2/2] ACPI: APEI: rename ghes_init with an "acpi_" prefix
Date: Sun, 27 Feb 2022 20:25:46 +0800	[thread overview]
Message-ID: <20220227122546.43307-2-xueshuai@linux.alibaba.com> (raw)
In-Reply-To: <20211126070422.73234-1-xueshuai@linux.alibaba.com>

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>
---
 drivers/acpi/apei/ghes.c | 2 +-
 drivers/acpi/bus.c       | 2 +-
 include/acpi/apei.h      | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index aadc0a972f18..d91ad378c00d 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -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;
 
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 3f403db20f69..cd374210fb9f 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -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();
diff --git a/include/acpi/apei.h b/include/acpi/apei.h
index 4e60dd73c3bb..afaca3a075e8 100644
--- a/include/acpi/apei.h
+++ b/include/acpi/apei.h
@@ -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
-- 
2.20.1.12.g72788fdb


WARNING: multiple messages have this Message-ID (diff)
From: Shuai Xue <xueshuai@linux.alibaba.com>
To: helgaas@kernel.org, rafael@kernel.org, nathan@kernel.org
Cc: bp@alien8.de, tony.luck@intel.com, james.morse@arm.com,
	lenb@kernel.org, rjw@rjwysocki.net, bhelgaas@google.com,
	xueshuai@linux.alibaba.com, zhangliguang@linux.alibaba.com,
	zhuo.song@linux.alibaba.com, linux-kernel@vger.kernel.org,
	linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-pci@vger.kernel.org
Subject: [PATCH v8 2/2] ACPI: APEI: rename ghes_init with an "acpi_" prefix
Date: Sun, 27 Feb 2022 20:25:46 +0800	[thread overview]
Message-ID: <20220227122546.43307-2-xueshuai@linux.alibaba.com> (raw)
In-Reply-To: <20211126070422.73234-1-xueshuai@linux.alibaba.com>

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>
---
 drivers/acpi/apei/ghes.c | 2 +-
 drivers/acpi/bus.c       | 2 +-
 include/acpi/apei.h      | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index aadc0a972f18..d91ad378c00d 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -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;
 
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 3f403db20f69..cd374210fb9f 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -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();
diff --git a/include/acpi/apei.h b/include/acpi/apei.h
index 4e60dd73c3bb..afaca3a075e8 100644
--- a/include/acpi/apei.h
+++ b/include/acpi/apei.h
@@ -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
-- 
2.20.1.12.g72788fdb


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2022-02-27 12:26 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-26  7:04 [RFC PATCH v4] ACPI: Move sdei_init and ghes_init ahead to handle platform errors earlier Shuai Xue
2021-11-26  7:04 ` Shuai Xue
2021-12-02 12:50 ` Shuai Xue
2021-12-02 12:50   ` Shuai Xue
2021-12-16 13:34 ` [RESEND " Shuai Xue
2021-12-16 13:34   ` Shuai Xue
2021-12-17 18:17   ` Rafael J. Wysocki
2021-12-17 18:17     ` Rafael J. Wysocki
2021-12-19  4:04     ` Shuai Xue
2021-12-19  4:04       ` Shuai Xue
2021-12-21 23:17   ` Bjorn Helgaas
2021-12-21 23:17     ` Bjorn Helgaas
2021-12-23  8:11     ` Shuai Xue
2021-12-23  8:11       ` Shuai Xue
2021-12-24  0:17       ` Bjorn Helgaas
2021-12-24  0:17         ` Bjorn Helgaas
2021-12-24  8:55         ` Shuai Xue
2021-12-24  8:55           ` Shuai Xue
2022-01-13 13:38           ` Shuai Xue
2022-01-13 13:38             ` Shuai Xue
2022-01-16  8:43 ` [PATCH v5] " Shuai Xue
2022-01-16  8:43   ` Shuai Xue
2022-01-18 22:49   ` Bjorn Helgaas
2022-01-18 22:49     ` Bjorn Helgaas
2022-01-19  6:40     ` Shuai Xue
2022-01-19  6:40       ` Shuai Xue
2022-01-19 20:42       ` Bjorn Helgaas
2022-01-19 20:42         ` Bjorn Helgaas
2022-01-20  2:40         ` Shuai Xue
2022-01-20  2:40           ` Shuai Xue
2022-01-20 16:24         ` Rafael J. Wysocki
2022-01-20 16:24           ` Rafael J. Wysocki
2022-01-20  5:05 ` [PATCH v6] ACPI: explicit init HEST, SDEI and GHES in apci_init Shuai Xue
2022-01-20  5:05   ` Shuai Xue
2022-01-20 16:22   ` Bjorn Helgaas
2022-01-20 16:22     ` Bjorn Helgaas
2022-01-21  3:43     ` Shuai Xue
2022-01-21  3:43       ` Shuai Xue
2022-01-21 19:46       ` Bjorn Helgaas
2022-01-21 19:46         ` Bjorn Helgaas
2022-01-22  5:26 ` [PATCH v7 1/2] ACPI: APEI: explicit init HEST " Shuai Xue
2022-01-22  5:26   ` Shuai Xue
2022-02-10  9:39   ` Shuai Xue
2022-02-10  9:39     ` Shuai Xue
2022-02-14 18:51     ` Rafael J. Wysocki
2022-02-14 18:51       ` Rafael J. Wysocki
2022-02-21 18:18   ` Nathan Chancellor
2022-02-21 18:18     ` Nathan Chancellor
2022-02-21 18:25     ` Rafael J. Wysocki
2022-02-21 18:25       ` Rafael J. Wysocki
2022-02-22  6:03     ` Shuai Xue
2022-02-22  6:03       ` Shuai Xue
2022-01-22  5:26 ` [PATCH v7 2/2] ACPI: APEI: rename ghes_init with an "acpi_" prefix Shuai Xue
2022-01-22  5:26   ` Shuai Xue
2022-02-27 12:25 ` [PATCH v8 1/2] ACPI: APEI: explicit init HEST and GHES in apci_init Shuai Xue
2022-02-27 12:25   ` Shuai Xue
2022-03-03 19:27   ` Rafael J. Wysocki
2022-03-03 19:27     ` Rafael J. Wysocki
2022-02-27 12:25 ` Shuai Xue [this message]
2022-02-27 12:25   ` [PATCH v8 2/2] ACPI: APEI: rename ghes_init with an "acpi_" prefix Shuai Xue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220227122546.43307-2-xueshuai@linux.alibaba.com \
    --to=xueshuai@linux.alibaba.com \
    --cc=bhelgaas@google.com \
    --cc=bp@alien8.de \
    --cc=helgaas@kernel.org \
    --cc=james.morse@arm.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=nathan@kernel.org \
    --cc=rafael@kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=tony.luck@intel.com \
    --cc=zhangliguang@linux.alibaba.com \
    --cc=zhuo.song@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.