X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=fs%2Fautofs4%2Fdev-ioctl.c;fp=fs%2Fautofs4%2Fdev-ioctl.c;h=6f48d670c9415ce610980e6288d118623cd237d1;hb=9763f7a4a5f7b1a7c480fa06d01b2bad25163c0a;hp=afacdaa8dd5a203aecc052f9b782e58632dae653;hpb=1c4344a50d702307185cb98fb67bff938cd66aa0;p=mirror_ubuntu-artful-kernel.git diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c index afacdaa8dd5a..6f48d670c941 100644 --- a/fs/autofs4/dev-ioctl.c +++ b/fs/autofs4/dev-ioctl.c @@ -204,7 +204,7 @@ static int autofs_dev_ioctl_protosubver(struct file *fp, /* Find the topmost mount satisfying test() */ static int find_autofs_mount(const char *pathname, struct path *res, - int test(struct path *path, void *data), + int test(const struct path *path, void *data), void *data) { struct path path; @@ -230,12 +230,12 @@ static int find_autofs_mount(const char *pathname, return err; } -static int test_by_dev(struct path *path, void *p) +static int test_by_dev(const struct path *path, void *p) { return path->dentry->d_sb->s_dev == *(dev_t *)p; } -static int test_by_type(struct path *path, void *p) +static int test_by_type(const struct path *path, void *p) { struct autofs_info *ino = autofs4_dentry_ino(path->dentry);