xref: /linux/drivers/cxl/core/mce.h (revision b4ada0618eed0fbd1b1630f73deb048c592b06a1)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright(c) 2024 Intel Corporation. All rights reserved. */
3 #ifndef _CXL_CORE_MCE_H_
4 #define _CXL_CORE_MCE_H_
5 
6 #include <linux/notifier.h>
7 
8 #ifdef CONFIG_CXL_MCE
9 int devm_cxl_register_mce_notifier(struct device *dev,
10 				   struct notifier_block *mce_notifier);
11 #else
12 static inline int
13 devm_cxl_register_mce_notifier(struct device *dev,
14 			       struct notifier_block *mce_notifier)
15 {
16 	return -EOPNOTSUPP;
17 }
18 #endif
19 
20 #endif
21