diff options
Diffstat (limited to 'fs/debugfs')
| -rw-r--r-- | fs/debugfs/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index f17fcf89e18e..1e30f74a9527 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
| @@ -187,9 +187,9 @@ static const struct super_operations debugfs_super_operations = { | |||
| 187 | 187 | ||
| 188 | static struct vfsmount *debugfs_automount(struct path *path) | 188 | static struct vfsmount *debugfs_automount(struct path *path) |
| 189 | { | 189 | { |
| 190 | struct vfsmount *(*f)(void *); | 190 | debugfs_automount_t f; |
| 191 | f = (struct vfsmount *(*)(void *))path->dentry->d_fsdata; | 191 | f = (debugfs_automount_t)path->dentry->d_fsdata; |
| 192 | return f(d_inode(path->dentry)->i_private); | 192 | return f(path->dentry, d_inode(path->dentry)->i_private); |
| 193 | } | 193 | } |
| 194 | 194 | ||
| 195 | static const struct dentry_operations debugfs_dops = { | 195 | static const struct dentry_operations debugfs_dops = { |
| @@ -504,7 +504,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_dir); | |||
| 504 | */ | 504 | */ |
| 505 | struct dentry *debugfs_create_automount(const char *name, | 505 | struct dentry *debugfs_create_automount(const char *name, |
| 506 | struct dentry *parent, | 506 | struct dentry *parent, |
| 507 | struct vfsmount *(*f)(void *), | 507 | debugfs_automount_t f, |
| 508 | void *data) | 508 | void *data) |
| 509 | { | 509 | { |
| 510 | struct dentry *dentry = start_creating(name, parent); | 510 | struct dentry *dentry = start_creating(name, parent); |
