diff options
author | Jiaxing Wang <hello.wjx@gmail.com> | 2015-11-22 03:05:10 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-08 01:26:47 -0500 |
commit | 94e1dec7a9c111419fee328cf6f082059d8bd0f8 (patch) | |
tree | b1fb6537661414090e598971c7a719db69c2a9fd /include/linux/debugfs.h | |
parent | e56ed358afd81554e668aaa974d3f9ed201fa10d (diff) |
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.h | 8 |
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, | |||
162 | return ERR_PTR(-ENODEV); | 162 | return ERR_PTR(-ENODEV); |
163 | } | 163 | } |
164 | 164 | ||
165 | static inline struct dentry *debugfs_create_automount(const char *name, | ||
166 | struct dentry *parent, | ||
167 | struct vfsmount *(*f)(void *), | ||
168 | void *data) | ||
169 | { | ||
170 | return ERR_PTR(-ENODEV); | ||
171 | } | ||
172 | |||
165 | static inline void debugfs_remove(struct dentry *dentry) | 173 | static inline void debugfs_remove(struct dentry *dentry) |
166 | { } | 174 | { } |
167 | 175 | ||