x86/mce/amd, EDAC/mce_amd: Move long names to decoder module
authorYazen Ghannam <yazen.ghannam@amd.com>
Sat, 18 Nov 2023 19:32:32 +0000 (13:32 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 27 Nov 2023 11:16:51 +0000 (12:16 +0100)
commitff03ff328fbd0a2b3a43e8b9bbc2a1d84265e77e
tree4dfcdf993cb5a0f0ae3cbd0240e3c5ec2e7e0d2b
parent6175b407756b22e7fdc771181b7d832ebdedef5c
x86/mce/amd, EDAC/mce_amd: Move long names to decoder module

The long names of the SMCA banks are only used by the MCE decoder
module.

Move them out of the arch code and into the decoder module.

  [ bp: Name the long names array "smca_long_names", drop local ptr in
    decode_smca_error(), constify arrays. ]

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20231118193248.1296798-5-yazen.ghannam@amd.com
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mce/amd.c
drivers/edac/mce_amd.c