提交 305d0e00 编写于 作者: A Alexandru Gagniuc 提交者: Borislav Petkov

EDAC, ghes: Remove unused argument to ghes_edac_report_mem_error()

The use of the @ghes argument was removed in a previous commit, but
function signature was not updated to reflect this.
Signed-off-by: NAlexandru Gagniuc <mr.nuke.me@gmail.com>
Acked-by: N"Rafael J. Wysocki" <rafael@kernel.org>
Cc: linux-acpi@vger.kernel.org
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20180430213358.8319-1-mr.nuke.me@gmail.comSigned-off-by: NBorislav Petkov <bp@suse.de>
上级 83e548be
...@@ -481,7 +481,7 @@ static void ghes_do_proc(struct ghes *ghes, ...@@ -481,7 +481,7 @@ static void ghes_do_proc(struct ghes *ghes,
if (guid_equal(sec_type, &CPER_SEC_PLATFORM_MEM)) { if (guid_equal(sec_type, &CPER_SEC_PLATFORM_MEM)) {
struct cper_sec_mem_err *mem_err = acpi_hest_get_payload(gdata); 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); arch_apei_report_mem_error(sev, mem_err);
ghes_handle_memory_failure(gdata, sev); ghes_handle_memory_failure(gdata, sev);
......
...@@ -172,8 +172,7 @@ static void ghes_edac_dmidecode(const struct dmi_header *dh, void *arg) ...@@ -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, void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err)
struct cper_sec_mem_err *mem_err)
{ {
enum hw_event_mc_err_type type; enum hw_event_mc_err_type type;
struct edac_raw_error_desc *e; struct edac_raw_error_desc *e;
......
...@@ -55,15 +55,14 @@ enum { ...@@ -55,15 +55,14 @@ enum {
/* From drivers/edac/ghes_edac.c */ /* From drivers/edac/ghes_edac.c */
#ifdef CONFIG_EDAC_GHES #ifdef CONFIG_EDAC_GHES
void ghes_edac_report_mem_error(struct ghes *ghes, int sev, void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err);
struct cper_sec_mem_err *mem_err);
int ghes_edac_register(struct ghes *ghes, struct device *dev); int ghes_edac_register(struct ghes *ghes, struct device *dev);
void ghes_edac_unregister(struct ghes *ghes); void ghes_edac_unregister(struct ghes *ghes);
#else #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) struct cper_sec_mem_err *mem_err)
{ {
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册