summaryrefslogtreecommitdiffstats
path: root/drivers/cxl/core/mce.h
blob: ace73424eeb6188ce04608dfe8b13ea729cf63a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright(c) 2024 Intel Corporation. All rights reserved. */
#ifndef _CXL_CORE_MCE_H_
#define _CXL_CORE_MCE_H_

#include <linux/notifier.h>

#ifdef CONFIG_CXL_MCE
int devm_cxl_register_mce_notifier(struct device *dev,
				   struct notifier_block *mce_notifer);
#else
static inline int
devm_cxl_register_mce_notifier(struct device *dev,
			       struct notifier_block *mce_notifier)
{
	return -EOPNOTSUPP;
}
#endif

#endif