x86/mce: Provide method to find out the type of an exception handler
authorTony Luck <tony.luck@intel.com>
Tue, 6 Oct 2020 21:09:06 +0000 (14:09 -0700)
committerBorislav Petkov <bp@suse.de>
Wed, 7 Oct 2020 09:08:59 +0000 (11:08 +0200)
commita05d54c41ecfa1a322b229b4e5ce50c157284f74
treec5c0852daccf221f05a801f167e3850f4efb7754
parent41ce0564bfe2e129d56730418d8c0a9f9f2d31b5
x86/mce: Provide method to find out the type of an exception handler

Avoid a proliferation of ex_has_*_handler() functions by having just
one function that returns the type of the handler (if any).

Drop the __visible attribute for this function. It is not called
from assembler so the attribute is not necessary.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20201006210910.21062-3-tony.luck@intel.com
arch/x86/include/asm/extable.h
arch/x86/kernel/cpu/mce/severity.c
arch/x86/mm/extable.c