Skip to contentSkip to conversation

debugfs: Add stub function for debugfs_create_automount().

PATCH New Jiaxing Wang 1 participant 1 message Nov 22, 2015 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 debugfs: Add stub function for debugfs_create_automount().

Add stub for debugfs_create_automount() for when debugfs is not configured in.

---
 include/linux/debugfs.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/linux/debugfs.h +8 -0
index 19c066d..981e53a 100644
@@ -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)
 { }
 
Signature · 1 line
2.1.4