git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RAS: Avoid build errors when CONFIG_DEBUG_FS=n
[sfrench/cifs-2.6.git]
/
drivers
/
ras
/
debugfs.h
diff --git
a/drivers/ras/debugfs.h
b/drivers/ras/debugfs.h
index 4749ccdeeba12236aff3f8178dbed8582764272a..5a2f48439258cd6e2b0f2a92947074b2baf86f40 100644
(file)
--- a/
drivers/ras/debugfs.h
+++ b/
drivers/ras/debugfs.h
@@
-4,6
+4,10
@@
#include <linux/debugfs.h>
+#if IS_ENABLED(CONFIG_DEBUG_FS)
struct dentry *ras_get_debugfs_root(void);
+#else
+static inline struct dentry *ras_get_debugfs_root(void) { return NULL; }
+#endif /* DEBUG_FS */
#endif /* __RAS_DEBUGFS_H__ */