diff options
author | Tony Luck <tony.luck@intel.com> | 2020-02-15 01:27:15 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-04-14 16:58:08 +0300 |
commit | 9554bfe403bdfc084823df8695a01f28c680af61 (patch) | |
tree | 6d0a39f38f1ccf00252dda299a6d56de943dcbca /include/linux | |
parent | c9c6d216ed28be6e2c91e3651af169eca284813a (diff) | |
download | linux-9554bfe403bdfc084823df8695a01f28c680af61.tar.xz |
x86/mce: Convert the CEC to use the MCE notifier
The CEC code has its claws in a couple of routines in mce/core.c.
Convert it to just register itself on the normal MCE notifier chain.
[ bp: Make cec_add_elem() and cec_init() static. ]
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Tested-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20200214222720.13168-3-tony.luck@intel.com
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ras.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/ras.h b/include/linux/ras.h index 7c3debb47c87..1f4048bf2674 100644 --- a/include/linux/ras.h +++ b/include/linux/ras.h @@ -17,12 +17,7 @@ static inline int ras_add_daemon_trace(void) { return 0; } #endif #ifdef CONFIG_RAS_CEC -void __init cec_init(void); int __init parse_cec_param(char *str); -int cec_add_elem(u64 pfn); -#else -static inline void __init cec_init(void) { } -static inline int cec_add_elem(u64 pfn) { return -ENODEV; } #endif #ifdef CONFIG_RAS |