x86/RAS: Hide SMCA bank names
authorBorislav Petkov <bp@suse.de>
Thu, 3 Nov 2016 20:12:33 +0000 (21:12 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 8 Nov 2016 16:10:15 +0000 (17:10 +0100)
commitc09a8c40e0a0b4994925ac8eba91b85d76f440a3
tree731e8955703d1c2f1ddc35376495a784febdfc60
parenta9a1c0ee04aa771e5523ae33e458c702261ab547
x86/RAS: Hide SMCA bank names

Add accessor functions and hide the smca_names array. Also, add a
sanity-check to bank HWID assignment in get_smca_bank_info().

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/20161104152317.5r276t35df53qk76@pd.tnic
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce_amd.c
drivers/edac/mce_amd.c