History

EDAC: Store error type in struct edac_raw_error_desc

Store the error type in struct edac_raw_error_desc. This makes the type parameter of edac_raw_mc_handle_error() obsolete. [ kernel-doc typo ] Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Robert Richter <rrichter@marvell.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org> Acked-by: Aristeu Rozanski <aris@redhat.com> Link: https://lkml.kernel.org/r/20200123090210.26933-4-rrichter@marvell.com

Robert Richter committed 6 years ago

Commit 672ef0e1 parent 1f27c794 files · +13 −14Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/edac.h+2−0
@@ -442,6 +442,7 @@ struct errcount_attribute_data { · 441 unmodified lines
442 * struct edac_raw_error_desc - Raw error report structure442 * struct edac_raw_error_desc - Raw error report structure
443 * @grain: minimum granularity for an error report, in bytes443 * @grain: minimum granularity for an error report, in bytes
444 * @error_count: number of errors of the same type444 * @error_count: number of errors of the same type
445 * @type: severity of the error (CE/UE/Fatal)
445 * @top_layer: top layer of the error (layer[0])446 * @top_layer: top layer of the error (layer[0])
446 * @mid_layer: middle layer of the error (layer[1])447 * @mid_layer: middle layer of the error (layer[1])
447 * @low_layer: low layer of the error (layer[2])448 * @low_layer: low layer of the error (layer[2])
@@ -462,6 +463,7 @@ struct edac_raw_error_desc { · 14 unmodified lines
462 long grain;463 long grain;
463 464
464 u16 error_count;465 u16 error_count;
466 enum hw_event_mc_err_type type;
465 int top_layer;467 int top_layer;
466 int mid_layer;468 int mid_layer;
467 int low_layer;469 int low_layer;