]> 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)
commit22b8c2105d3cf6d891da9961abc22f29ee57234e
treec5c0852daccf221f05a801f167e3850f4efb7754
parent41c6314b132b46228bf0e1333dfe215275ac6c77
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