diff options
| author | Tony Luck <[email protected]> | 2020-02-14 14:27:15 -0800 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2020-04-14 15:58:08 +0200 |
| commit | 9554bfe403bdfc084823df8695a01f28c680af61 (patch) | |
| tree | 6d0a39f38f1ccf00252dda299a6d56de943dcbca /include/linux/ras.h | |
| parent | c9c6d216ed28be6e2c91e3651af169eca284813a (diff) | |
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 <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Tested-by: Tony Luck <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/ras.h')
| -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 |
