From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936225AbdGTLEz (ORCPT ); Thu, 20 Jul 2017 07:04:55 -0400 Received: from foss.arm.com ([217.140.101.70]:52012 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936151AbdGTLEx (ORCPT ); Thu, 20 Jul 2017 07:04:53 -0400 From: Punit Agrawal To: linux-kernel@vger.kernel.org Cc: lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, Punit Agrawal , linux-acpi@vger.kernel.org, "Rafael J. Wysocki" , Borislav Petkov Subject: [PATCH 3/4] ACPI / APEI: Drop uninformative messages during boot Date: Thu, 20 Jul 2017 12:04:01 +0100 Message-Id: <20170720110402.15313-4-punit.agrawal@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170720110402.15313-1-punit.agrawal@arm.com> References: <20170720110402.15313-1-punit.agrawal@arm.com> X-ARM-No-Footer: FoSSMail Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: "Rafael J. Wysocki" Cc: Borislav Petkov --- 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