]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC/mc: Remove enable_per_layer_report function argument
authorRobert Richter <rrichter@marvell.com>
Thu, 23 Jan 2020 09:03:02 +0000 (09:03 +0000)
committerBorislav Petkov <bp@suse.de>
Mon, 17 Feb 2020 12:13:16 +0000 (13:13 +0100)
commitb62134db80baa216d77879ace8bd297d3265f179
treef1515889f2a89afeaf39d2178f0c2bd5afd970a2
parentd49e456f44d732c97a7604b2ca97346e2429efca
EDAC/mc: Remove enable_per_layer_report function argument

Many functions carry the enable_per_layer_report argument. This is a
bool value indicating the error information contains some location
data where the error occurred. This can easily being determined by
checking the pos[] array for values. Negative values indicate there is
no location available. So if the top layer is negative, the error
location is unknown.

Just check if the top layer is negative and remove
enable_per_layer_report as function argument and also from struct
edac_raw_error_desc.

 [ bp: Reflow comments to 80 columns, while at it. ]

Signed-off-by: Robert Richter <rrichter@marvell.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Aristeu Rozanski <aris@redhat.com>
Link: https://lkml.kernel.org/r/20200123090210.26933-8-rrichter@marvell.com
drivers/edac/edac_mc.c
drivers/edac/ghes_edac.c
include/linux/edac.h