From patchwork Mon Apr 30 21:33:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alex G." X-Patchwork-Id: 10372951 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 C53D760116 for ; Mon, 30 Apr 2018 21:34:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2F9F28BA7 for ; Mon, 30 Apr 2018 21:34:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A769E28BAB; Mon, 30 Apr 2018 21:34:13 +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 43E8128BA7 for ; Mon, 30 Apr 2018 21:34:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751461AbeD3VeM (ORCPT ); Mon, 30 Apr 2018 17:34:12 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:46020 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751084AbeD3VeK (ORCPT ); Mon, 30 Apr 2018 17:34:10 -0400 Received: by mail-oi0-f65.google.com with SMTP id b130-v6so8692351oif.12; Mon, 30 Apr 2018 14:34:10 -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=D5Mrh/4044J5318808YnIbc17HKVopB8O6K7re/bs/BDbnT37+AcIDIfXyX1mGG7g9 BHB1wvQbSsbitom6s6dWe7Ou7V6pv1VICzAQsW68/s+A+xSjOGSgMq3/IHrmP645PO6D DoswNwp/F/UWgb71zlyhqMxpwWaMw9oSMNdN+Ft8rnIH9KAi+N4dEREsTSwuJlr9kbJw kum+FHjm2K9MjvzfJXMTvEOV2HpxZBDP3/H6mATfe271ws6t1e/cXY8Yhy07+oXCdVh2 wUedynwQaoc1THvMkxgI2q+KMZI3C0kvADOsnJIciPO3R5UQ+W/JbFfFoGF4zsN5TZS2 8MSw== 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=MZ/1EjSdXMwPORK4dgySywZJgvNn+GhMDwdF5vzCwNOs6RzlWZQMNkkonKVUfuYxNK ckI0idEFoGQadl1Wl45WL7CZMQP5CfgBmaBi6XeTZximHOIh2NqaUDuPJVb2w9uP3KeS XbF5iCnovfH9GgNXXfkWSbCXpfmYl5CzS0kwu1vb6DGTZONiq9cTA23Oza5kc4JkIcII knFVobhP6Z1HL0QNpFMDABhq8BjK30VPYKEw7HD9/XqG6ThevnU8n8GrP03LPPr22olq QABRf8E6UaovRG8Jhc0W6Ngky7d0Bs4nMoF/A9IZeiHZEO71cRwXDn7Ar6EAVFT18jds 7jeg== X-Gm-Message-State: ALQs6tAYJgYMyNA2DaoF4Y87OqwviI0YgIJcquhIGz2X3ajJFMGZQW7u fSDp9PjgfoC2wfYngHoaLvM= X-Google-Smtp-Source: AB8JxZqyozgbf6gTaAr14JnhwMibrcyIV4mKUijaXnZ+AWY+D8TCor2tC5jJYHcWq0bQnLuAYQh0cQ== X-Received: by 2002:aca:af4e:: with SMTP id y75-v6mr7896600oie.223.1525124050262; Mon, 30 Apr 2018 14:34:10 -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 m3-v6sm1475866oif.50.2018.04.30.14.34.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 14:34:09 -0700 (PDT) From: Alexandru Gagniuc To: bp@alien8.de Cc: alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, Alexandru Gagniuc , "Rafael J. Wysocki" , Len Brown , Tony Luck , Mauro Carvalho Chehab , Robert Moore , Erik Schmauss , Tyler Baicar , Will Deacon , James Morse , Shiju Jose , "Jonathan (Zhixiong) Zhang" , Dongjiu Geng , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, devel@acpica.org Subject: [RFC PATCH v4 1/3] EDAC, GHES: Remove unused argument to ghes_edac_report_mem_error Date: Mon, 30 Apr 2018 16:33:50 -0500 Message-Id: <20180430213358.8319-1-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180430212836.7807-1-mr.nuke.me@gmail.com> References: <20180430212836.7807-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) { }