Received: by 10.192.165.156 with SMTP id m28csp1144642imm; Mon, 16 Apr 2018 15:03:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx49M7PjAGeZKanL61pjPClWPS6SSr2jDOEGGrcwl+Bt01igmGqsUkEG0ikCVTH7mL402ra88 X-Received: by 10.99.181.89 with SMTP id u25mr6914392pgo.302.1523916212470; Mon, 16 Apr 2018 15:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523916212; cv=none; d=google.com; s=arc-20160816; b=natQbIsHc6NQbWd6qQ9mONoGplCZLIRQrAeW+8Gv6rRV1L598mO/HzVT7yhbQ0qUTB ON6sZPtNnR6g5yubl4jU9jttIfVaSn1fuWiMrWmhTARyrb3uqM+2zZAOYyJEpHLIgr/t CC8sabMqxJU04bJS3neIJqpcw9ZHz+KV36vQSDFt77rXIp5bdl1K6oI9YBzjeb6rTJQK Vefc3Ijp+Da93S6ngzbTXXpCNjnQlAS96fsuvP77CnYPrXltPWugoFG+W9Jw+6z6UVWN AgeysjcqKHwA3WfhE3LJCQPMhiMWsHQz+s3S0/HAo9HWX1fi/TUqCBVynIcgfMivvAR7 dDxQ== 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=o9xnVzc6H0XZBQPPVhIKfg+X4qhSDFBq43m0Of25ApA=; b=aRPhvIgcAx0cfMbJ+osaauB4MRcOmGFv51jybtUtWGLSk6FocZ6VM3eS+gZxBxwgXv 78gIxoMs3dJIsu6e0BLsqGWEgQFme0+OAfby+kADLyhPrFdgMZAvlmQNF0e19Oc0V/F0 F79M1yVEwcZam2S0kkB2pTigfyaJUDAu0zhI1L4QGxooOGhbmfFHPN+sbpp6/E3zvEfW cWVoL6tEtannlh5cRLpUtT9VcecIwgbttZjLH3T1HTCEC1JH6ao5PO9+ddNPX1DFbWQI NPaaGUF5Vc92RSb1D8j4IrbEGGbAm91/OP1naHIHQ/UtAaKuvCwevDvoHHoFVD7rjnfE 9L7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hEYY01d5; 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 y7-v6si12860923plh.583.2018.04.16.15.03.18; Mon, 16 Apr 2018 15:03:32 -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=hEYY01d5; 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 S1752947AbeDPWAZ (ORCPT + 99 others); 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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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