mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
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>
This commit is contained in:
parent
e56ed358af
commit
94e1dec7a9
1 changed files with 8 additions and 0 deletions
|
@ -162,6 +162,14 @@ static inline struct dentry *debugfs_create_symlink(const char *name,
|
||||||
return ERR_PTR(-ENODEV);
|
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)
|
static inline void debugfs_remove(struct dentry *dentry)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue