debugfs: Add stub function for debugfs_create_automount().
authorJiaxing Wang <hello.wjx@gmail.com>
Sun, 22 Nov 2015 08:05:10 +0000 (16:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 06:26:47 +0000 (22:26 -0800)
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>
include/linux/debugfs.h

index 19c066dce1dab2e0a4dfab9f2851d6998d0f8716..981e53ab84e8e9d48948967d6a98bc90977df9cc 100644 (file)
@@ -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)
 { }