summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWeijie Yang <weijie.yang@samsung.com>2013-09-27 13:09:07 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-04 03:14:12 +0400
commit5b8802143a4a3e38906879e78f2c1415c5b3db73 (patch)
tree03c6f357cea5015ec34eb265f7614d5a4ff7a29a /include
parent88502b9c0a5dcc884c0dbfb6ddf964ff5da5d8d3 (diff)
downloadlinux-5b8802143a4a3e38906879e78f2c1415c5b3db73.tar.xz
fs/debugfs: add declaration for no CONFIG_DEBUG_FS
Two function declarations are absence if not define CONFIG_DEBUG_FS in include/linux/debugfs.h Signed-off-by: Weijie Yang <weijie.yang@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/debugfs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index 263489d0788d..4d0b4d1aa132 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -206,6 +206,12 @@ static inline struct dentry *debugfs_create_size_t(const char *name, umode_t mod
return ERR_PTR(-ENODEV);
}
+static inline struct dentry *debugfs_create_atomic_t(const char *name, umode_t mode,
+ struct dentry *parent, atomic_t *value)
+{
+ return ERR_PTR(-ENODEV);
+}
+
static inline struct dentry *debugfs_create_bool(const char *name, umode_t mode,
struct dentry *parent,
u32 *value)
@@ -227,6 +233,12 @@ static inline struct dentry *debugfs_create_regset32(const char *name,
return ERR_PTR(-ENODEV);
}
+static inline int debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs,
+ int nregs, void __iomem *base, char *prefix)
+{
+ return 0;
+}
+
static inline bool debugfs_initialized(void)
{
return false;