aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/debugfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/debugfs.h')
-rw-r--r--include/linux/debugfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index f7a7b86f6eef..dcf847cdb5ce 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -17,6 +17,10 @@
17 17
18#include <linux/fs.h> 18#include <linux/fs.h>
19 19
20#include <linux/types.h>
21
22struct file_operations;
23
20#if defined(CONFIG_DEBUG_FS) 24#if defined(CONFIG_DEBUG_FS)
21struct dentry *debugfs_create_file(const char *name, mode_t mode, 25struct dentry *debugfs_create_file(const char *name, mode_t mode,
22 struct dentry *parent, void *data, 26 struct dentry *parent, void *data,
@@ -36,6 +40,9 @@ struct dentry *debugfs_create_bool(const char *name, mode_t mode,
36 struct dentry *parent, u32 *value); 40 struct dentry *parent, u32 *value);
37 41
38#else 42#else
43
44#include <linux/err.h>
45
39/* 46/*
40 * We do not return NULL from these functions if CONFIG_DEBUG_FS is not enabled 47 * We do not return NULL from these functions if CONFIG_DEBUG_FS is not enabled
41 * so users have a chance to detect if there was a real error or not. We don't 48 * so users have a chance to detect if there was a real error or not. We don't