RAS: Avoid build errors when CONFIG_DEBUG_FS=n
[linux-2.6-block.git] / drivers / ras / debugfs.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
011d8261
BP
2#ifndef __RAS_DEBUGFS_H__
3#define __RAS_DEBUGFS_H__
4
5#include <linux/debugfs.h>
6
a6b227d7 7#if IS_ENABLED(CONFIG_DEBUG_FS)
9d2b6fa0 8struct dentry *ras_get_debugfs_root(void);
a6b227d7
YG
9#else
10static inline struct dentry *ras_get_debugfs_root(void) { return NULL; }
11#endif /* DEBUG_FS */
011d8261
BP
12
13#endif /* __RAS_DEBUGFS_H__ */