From patchwork Mon Apr 16 21:59:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alex G." X-Patchwork-Id: 10343957 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 055D56039A for ; Mon, 16 Apr 2018 22:00:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E78EB2891E for ; Mon, 16 Apr 2018 22:00:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC31928923; Mon, 16 Apr 2018 22:00:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8341F2891E for ; Mon, 16 Apr 2018 22:00:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752958AbeDPWAZ (ORCPT ); Mon, 16 Apr 2018 18:00:25 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:44096 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751892AbeDPV7Q (ORCPT ); Mon, 16 Apr 2018 17:59:16 -0400 Received: by mail-oi0-f65.google.com with SMTP id e11-v6so4683739oii.11; Mon, 16 Apr 2018 14:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=o9xnVzc6H0XZBQPPVhIKfg+X4qhSDFBq43m0Of25ApA=; b=hEYY01d5RowEEn73x4jjsKWQWHQPohDq7lpuaB7voeQKtScPbOhaJuL4xujhjvZFph S1Z/QvxUZjL9Y7kwylpSTzp9YzpRhbT8//EM8KZJETbZqMM3bHVkZpp0IMUsGuNSyguQ FDO0XoesXGZ1i/4PMhOBz3cdmUYoA2v0bycrhgc2XKnl3dEPpq3Wgbl6gevQRdmKkGlh BAoQUorQM2at0E4arBwq2T8rJvv4LCSR5qJwDBs51Gyqa+QagEOnpPwFRaXo7cPbfGiT KRPpa+QGcQXXvbHsKiCuFj+g+pD1D4hNgJZtPMQZZViNwtKqOsoFIrGXgr9Oy4hejg1+ JJ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=o9xnVzc6H0XZBQPPVhIKfg+X4qhSDFBq43m0Of25ApA=; b=mWeiLuOVqWgmwsdrHEigfgpjqwAyrRpUFjvcRWk6xGuw5WuimSUMXosAdt+uCEdQFL aD9GlekidosI0UT+3+t7t9oueA0fuPRsHilQncjo0x/iNopdmQ2PmlEwt80iieNIbSxk 0m14yTsWvjXCza1EUDiK4maF5Bx/B2cCXLupsOdk7ofLK3+0Jnc03JPvjW+f2/lr7V/M 4Mm/L59Rt7psGZfZ6USQuz6f2FTvcSJK1d3NZ0xV+WBu5N7jhW4HudgKTuQbeZ4zQrbM 0+H8mvMzUZA8qWkV5gNz+OdCPc1kUmIz6/8Z+78/yLm9EvHcHLR7HnotPie6hKCK5re/ Ahwg== X-Gm-Message-State: ALQs6tC5P2eQgT2ZxWUM8Kr0KeKCzp/eSomxwlAgTGZ2UoGuQ5ZSYucT jqpE1zLgMZW1g9Ls5iiLh4KUo7bK X-Google-Smtp-Source: AIpwx4/WB/V4RqLk/oJm9zctLS5oAg8stUD4Je4eFdAuNyX03zPS5k16tHM6ve8/RlBUviOGq1+ifg== X-Received: by 2002:aca:ce0d:: with SMTP id e13-v6mr16778374oig.34.1523915955547; Mon, 16 Apr 2018 14:59:15 -0700 (PDT) Received: from nuclearis2_1.lan (c-98-197-2-30.hsd1.tx.comcast.net. [98.197.2.30]) by smtp.gmail.com with ESMTPSA id j23-v6sm8219960oiy.22.2018.04.16.14.59.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 14:59:14 -0700 (PDT) From: Alexandru Gagniuc To: linux-acpi@vger.kernel.org, linux-edac@vger.kernel.org Cc: rjw@rjwysocki.net, lenb@kernel.org, tony.luck@intel.com, bp@alien8.de, tbaicar@codeaurora.org, will.deacon@arm.com, james.morse@arm.com, shiju.jose@huawei.com, zjzhang@codeaurora.org, gengdongjiu@huawei.com, linux-kernel@vger.kernel.org, alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, devel@acpica.org, mchehab@kernel.org, robert.moore@intel.com, erik.schmauss@intel.com, Alexandru Gagniuc Subject: [RFC PATCH v2 1/4] EDAC, GHES: Remove unused argument to ghes_edac_report_mem_error Date: Mon, 16 Apr 2018 16:59:00 -0500 Message-Id: <20180416215903.7318-2-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180416215903.7318-1-mr.nuke.me@gmail.com> References: <20180416215903.7318-1-mr.nuke.me@gmail.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alexandru Gagniuc --- drivers/acpi/apei/ghes.c | 2 +- drivers/edac/ghes_edac.c | 3 +-- include/acpi/ghes.h | 5 ++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 1efefe919555..f9b53a6f55f3 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -481,7 +481,7 @@ static void ghes_do_proc(struct ghes *ghes, if (guid_equal(sec_type, &CPER_SEC_PLATFORM_MEM)) { struct cper_sec_mem_err *mem_err = acpi_hest_get_payload(gdata); - ghes_edac_report_mem_error(ghes, sev, mem_err); + ghes_edac_report_mem_error(sev, mem_err); arch_apei_report_mem_error(sev, mem_err); ghes_handle_memory_failure(gdata, sev); diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c index 68b6ee18bea6..32bb8c5f47dc 100644 --- a/drivers/edac/ghes_edac.c +++ b/drivers/edac/ghes_edac.c @@ -172,8 +172,7 @@ static void ghes_edac_dmidecode(const struct dmi_header *dh, void *arg) } } -void ghes_edac_report_mem_error(struct ghes *ghes, int sev, - struct cper_sec_mem_err *mem_err) +void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err) { enum hw_event_mc_err_type type; struct edac_raw_error_desc *e; diff --git a/include/acpi/ghes.h b/include/acpi/ghes.h index 8feb0c866ee0..e096a4e7f611 100644 --- a/include/acpi/ghes.h +++ b/include/acpi/ghes.h @@ -55,15 +55,14 @@ enum { /* From drivers/edac/ghes_edac.c */ #ifdef CONFIG_EDAC_GHES -void ghes_edac_report_mem_error(struct ghes *ghes, int sev, - struct cper_sec_mem_err *mem_err); +void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err); int ghes_edac_register(struct ghes *ghes, struct device *dev); void ghes_edac_unregister(struct ghes *ghes); #else -static inline void ghes_edac_report_mem_error(struct ghes *ghes, int sev, +static inline void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err) { }