]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7682ab13e4b2924eb5e4dc2ec70be413b387a07c
treec5c0852daccf221f05a801f167e3850f4efb7754
parentab6ec0176d22f9456fc2733f22ecda3b23674682
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