From patchwork Wed Apr 25 20:39:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alex G." X-Patchwork-Id: 10364245 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 44EE16038F for ; Wed, 25 Apr 2018 20:40:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3587528FD0 for ; Wed, 25 Apr 2018 20:40:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 250DC28FD7; Wed, 25 Apr 2018 20:40:26 +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 7FE0028FD2 for ; Wed, 25 Apr 2018 20:40:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751443AbeDYUkV (ORCPT ); Wed, 25 Apr 2018 16:40:21 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:35774 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751022AbeDYUkR (ORCPT ); Wed, 25 Apr 2018 16:40:17 -0400 Received: by mail-ot0-f193.google.com with SMTP id h8-v6so23168315otb.2; Wed, 25 Apr 2018 13:40:17 -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=89VBhNuPHnU7+gQQe2+DWhuQ27dayIRnt1DV0mcMBnQ=; b=SbFUt+mLQGJsZl43QorSl8Yys0j93NJUuvXVQTdlXAodaN4VK3lccHWy137axpHKEb mu1q516ev7YXiyk9Wv8lOKoMtUk0OYNX048C+WfFRzj11lCNXskO+m6/HCkGLX8aIz98 mA+6yjIy6GsXlglFnYVNz1ZFRlaegNSvkuM2B0qJGbVV63ajXe+ZJ9SGSPtN7gZ1wzzS RZHbj2UugdhjwAkC086D4zexRA4pMK02pIeJ7dkGLHI71qlgawWsrreaLL2hIuk/usSu IZ5giMFViNWM0OCTgohDOSK3gE4d1wWGgO2zDOND3zeKoFLVPUWX+OLu6n0xRD1Rvd/s Ur9g== 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=89VBhNuPHnU7+gQQe2+DWhuQ27dayIRnt1DV0mcMBnQ=; b=Vg7xLen2yPBG9BaDETbfXUGP2YD73JUyS1w7mgrnuUqzDUFq7RyzvM4pf9hGitbG9L lUTQbwvRzwlDC/3bGWftaV1sJ5hedl6SBBSiU1lnyGw+0rZg+utZROF2NKL2DrpCjFrR AA7Tbr6S5hZJPe2A/+nndmbwwA0Rq+amVmeu5CoeaFThfHywRGeLBy8ovcQOPAwtSDrM 117Dd/l5Uu/bNbaU9iZ8/jp4cH2anapzfT33k9ScJF5jK0zLI6SP9QaLOV5A2zpnfqPA 5+OCnItPCJ88/QxeCmjzv32KH1/nVXHcnk/WOjOnPx9V6UnPFMh87FB9sJaZQvjTC7af lVgA== X-Gm-Message-State: ALQs6tDFKwUr0gAkQeNa0zqxovZ7WciGSREuBtiY13AiVQc6WUdi3hyk gxLlXFSYghn36j/al+n8sHgOT2A4 X-Google-Smtp-Source: AB8JxZraQdhbmcIWf7Y63t8gEClz8ykQNe4POMfuTthry1fQRxg5tIDOvoBzTe098pL7+Qbb1nu+3A== X-Received: by 2002:a9d:454d:: with SMTP id p13-v6mr883809oti.386.1524688817005; Wed, 25 Apr 2018 13:40:17 -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 o189-v6sm9729908oia.19.2018.04.25.13.40.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 13:40:16 -0700 (PDT) From: Alexandru Gagniuc To: linux-acpi@vger.kernel.org, linux-edac@vger.kernel.org Cc: Alexandru Gagniuc , "Rafael J. Wysocki" , Len Brown , Tony Luck , Borislav Petkov , Mauro Carvalho Chehab , Robert Moore , Erik Schmauss , Tyler Baicar , Will Deacon , James Morse , Shiju Jose , "Jonathan (Zhixiong) Zhang" , Dongjiu Geng , linux-kernel@vger.kernel.org, devel@acpica.org Subject: [RFC PATCH v3 1/3] EDAC, GHES: Remove unused argument to ghes_edac_report_mem_error Date: Wed, 25 Apr 2018 15:39:49 -0500 Message-Id: <20180425203957.18224-2-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180425203957.18224-1-mr.nuke.me@gmail.com> References: <20180416215903.7318-1-mr.nuke.me@gmail.com> <20180425203957.18224-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 The use of the 'ghes' argument was removed in a previous commit, but function signature was not updated to reflect this. Fixes: 0fe5f281f749 ("EDAC, ghes: Model a single, logical memory controller") 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) { }