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_notifer); 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