[PATCH 3/4] ACPI / APEI: Drop uninformative messages during boot

From: Punit Agrawal
Date: Thu Jul 20 2017 - 07:04:58 EST


When booting an ACPI enabled system that does not provide the hardware
error source table (HEST), the ghes driver prints the following message
in the kernel log -

[ 3.460067] GHES: HEST is not enabled!

which is not helpful.

The message is also output when HEST is explicitly disabled using kernel
command line parameter.

Drop this message. While we are touching this code, also drop similar
message when GHES is disabled using the module parameter.

Signed-off-by: Punit Agrawal <punit.agrawal@xxxxxxx>
Cc: "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>
Cc: Borislav Petkov <bp@xxxxxxx>
---
drivers/acpi/apei/ghes.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index d661d452b238..3ddd1bd714fc 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -1265,15 +1265,8 @@ static int __init ghes_init(void)
if (acpi_disabled)
return -ENODEV;

- if (hest_disable) {
- pr_info(GHES_PFX "HEST is not enabled!\n");
+ if (hest_disable || ghes_disable)
return -EINVAL;
- }
-
- if (ghes_disable) {
- pr_info(GHES_PFX "GHES is not enabled!\n");
- return -EINVAL;
- }

ghes_nmi_init_cxt();

--
2.11.0