diff options
| author | Ben Dooks <[email protected]> | 2019-10-15 10:35:02 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2019-10-21 16:50:35 +0000 |
| commit | 2658ce095df583cdf9ede475ec4da0b3cc7f7b05 (patch) | |
| tree | a0224b50d7d1129a77bc2e5e07f5c581f3814ab6 /net/unix/af_unix.c | |
| parent | fs/fnctl: fix missing __user in fcntl_rw_hint() (diff) | |
| download | kernel-2658ce095df583cdf9ede475ec4da0b3cc7f7b05.tar.gz kernel-2658ce095df583cdf9ede475ec4da0b3cc7f7b05.zip | |
fs/namespace: add __user to open_tree and move_mount syscalls
Thw open_tree and move_mount syscalls take names from the
user, so add the __user to these to ensure the following
warnings from sparse are fixed:
fs/namespace.c:2392:35: warning: incorrect type in argument 2 (different address spaces)
fs/namespace.c:2392:35: expected char const [noderef] <asn:1> *name
fs/namespace.c:2392:35: got char const *filename
fs/namespace.c:3541:38: warning: incorrect type in argument 2 (different address spaces)
fs/namespace.c:3541:38: expected char const [noderef] <asn:1> *name
fs/namespace.c:3541:38: got char const *from_pathname
fs/namespace.c:3550:36: warning: incorrect type in argument 2 (different address spaces)
fs/namespace.c:3550:36: expected char const [noderef] <asn:1> *name
fs/namespace.c:3550:36: got char const *to_pathname
Signed-off-by: Ben Dooks <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
