Received: by 10.192.165.148 with SMTP id m20csp1164773imm; Wed, 25 Apr 2018 13:42:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+NaaBsh1jusDjls89yRYY3UzShZ1cT83XYoUIqndaujz8Ps2VtWPw5u+pqyFQxPBvQchHK X-Received: by 2002:a17:902:290a:: with SMTP id g10-v6mr30653809plb.155.1524688923384; Wed, 25 Apr 2018 13:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524688923; cv=none; d=google.com; s=arc-20160816; b=Rr4fLWtQ5kaTuIribFWv1/wBCNtL7TpsZNz3XRzmEW+3EHsy53E7n4SMsPPtAfLcoN A4QrPYHJcqNYWFuLfy/i0UMEluTRFhspVWXtPSuwvLRndwhHnRhs+VEpiQJtDyzrseBK h2SV2SCRbOcooHYf2TalAEaPkA+ZxXD6c4m0WR4sXU1zEUyzjQjpcU5DUg5f2a66OFDw JE9qnjKXYKf43ZBSonGhkYjQ0QN9SznKmKl9j+6eyZPpQh5OOQDsDrVT/Msd+xFlvtlv 6tRmVcPQULgrbuycMlgG5tGd57JmBqMua5DyJWYAO+wecYdoAqg7XdAn8iQpEIC6a0pu t2+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=89VBhNuPHnU7+gQQe2+DWhuQ27dayIRnt1DV0mcMBnQ=; b=LECaDdx3hxEKTtQpJlXNXhJE1TqNqgRfr++zUXH1RF1gx9ejPnncWSM5ZnDf6fyJLl oQEn9GZeboQtbzcyqphVA5hNjfGn8qy/xTuaMonj3tq/4S/F361w6XyWx9EO1RyonznU S/tnyAOTWwhdyODH89EcfLRCHEOdtcx7fmG9f6b+zKeTCo/bg/n9zUWajRKhPotelDXa av+64QrCA9zMd75ofG7rJoltosxgOOWDhypMHn8RqLZEGZUU7I8o/RUDOTIZRlmYNIt2 C9WNg7nrD45fA30f4wUVCaZURjTqvjpY9caC81IjItg+LpI630pIfieOghNqYl+vpQiV J8Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SbFUt+mL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si14617831pgc.620.2018.04.25.13.41.47; Wed, 25 Apr 2018 13:42:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SbFUt+mL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751506AbeDYUk2 (ORCPT + 99 others); Wed, 25 Apr 2018 16:40:28 -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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) { } -- 2.14.3