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
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -442,6 +442,7 @@ struct errcount_attribute_data { · 441 unmodified lines | ||
| 442 | 442 | * struct edac_raw_error_desc - Raw error report structure |
| 443 | 443 | * @grain: minimum granularity for an error report, in bytes |
| 444 | 444 | * @error_count: number of errors of the same type |
| 445 | + * @type: severity of the error (CE/UE/Fatal) | |
| 445 | 446 | * @top_layer: top layer of the error (layer[0]) |
| 446 | 447 | * @mid_layer: middle layer of the error (layer[1]) |
| 447 | 448 | * @low_layer: low layer of the error (layer[2]) |
| @@ -462,6 +463,7 @@ struct edac_raw_error_desc { · 14 unmodified lines | ||
| 462 | 463 | long grain; |
| 463 | 464 | |
| 464 | 465 | u16 error_count; |
| 466 | + enum hw_event_mc_err_type type; | |
| 465 | 467 | int top_layer; |
| 466 | 468 | int mid_layer; |
| 467 | 469 | int low_layer; |