EDAC/ghes: Unify CPER memory error location reporting
authorShuai Xue <xueshuai@linux.alibaba.com>
Tue, 8 Mar 2022 14:40:52 +0000 (22:40 +0800)
committerBorislav Petkov <bp@suse.de>
Fri, 8 Apr 2022 09:31:18 +0000 (11:31 +0200)
commited27b5df3877458eb24615fd9c202178660db009
treedfdae7d45985dd794f507cf39ba2dd0f65103c32
parentbdae79651453df0bca20963fc2ab970146ef2a37
EDAC/ghes: Unify CPER memory error location reporting

Switch the GHES EDAC memory error reporting functions to use the common
CPER ones and get rid of code duplication.

  [ bp:
      - rewrite commit message, remove useless text
      - rip out useless reformatting
      - align function params on the opening brace
      - rename function to a more descriptive name
      - drop useless function exports
      - handle buffer lengths properly when printing other detail
      - remove useless casting
  ]

Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220308144053.49090-3-xueshuai@linux.alibaba.com
drivers/edac/Kconfig
drivers/edac/ghes_edac.c
drivers/firmware/efi/cper.c
include/linux/cper.h