aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/debugfs.h
diff options
context:
space:
mode:
authorJiaxing Wang <hello.wjx@gmail.com>2015-11-22 16:05:10 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 22:26:47 -0800
commit94e1dec7a9c111419fee328cf6f082059d8bd0f8 (patch)
treeb1fb6537661414090e598971c7a719db69c2a9fd /include/linux/debugfs.h
parentkernfs: make kernfs_walk_ns() use kernfs_pr_cont_buf[] (diff)
downloadwireguard-linux-94e1dec7a9c111419fee328cf6f082059d8bd0f8.tar.xz
wireguard-linux-94e1dec7a9c111419fee328cf6f082059d8bd0f8.zip
debugfs: Add stub function for debugfs_create_automount().
Add stub for debugfs_create_automount() for when debugfs is not configured in. Signed-off-by: Jiaxing Wang <hello.wjx@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugfs.h')
-rw-r--r--include/linux/debugfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index 19c066dce1da..981e53ab84e8 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -162,6 +162,14 @@ static inline struct dentry *debugfs_create_symlink(const char *name,
return ERR_PTR(-ENODEV);
}
+static inline struct dentry *debugfs_create_automount(const char *name,
+ struct dentry *parent,
+ struct vfsmount *(*f)(void *),
+ void *data)
+{
+ return ERR_PTR(-ENODEV);
+}
+
static inline void debugfs_remove(struct dentry *dentry)
{ }