diff options
author | Namhyung Kim <namhyung@gmail.com> | 2011-01-16 23:28:17 +0900 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-17 08:21:42 -0500 |
commit | ecf5632dd189ab4c366cef853d6e5fe7adfe52e5 (patch) | |
tree | 947ae7edf45415753e960d53957ae3a4121fb3b8 /fs/jffs2 | |
parent | 27eaa1c90c608aa907336c2743d5ecf35c469440 (diff) | |
download | linux-ecf5632dd189ab4c366cef853d6e5fe7adfe52e5.tar.gz linux-ecf5632dd189ab4c366cef853d6e5fe7adfe52e5.tar.bz2 linux-ecf5632dd189ab4c366cef853d6e5fe7adfe52e5.zip |
fs: fix address space warnings in ioctl_fiemap()
The fi_extents_start field of struct fiemap_extent_info is a
user pointer but was not marked as __user. This makes sparse
emit following warnings:
CHECK fs/ioctl.c
fs/ioctl.c:114:26: warning: incorrect type in argument 1 (different address spaces)
fs/ioctl.c:114:26: expected void [noderef] <asn:1>*dst
fs/ioctl.c:114:26: got struct fiemap_extent *[assigned] dest
fs/ioctl.c:202:14: warning: incorrect type in argument 1 (different address spaces)
fs/ioctl.c:202:14: expected void const volatile [noderef] <asn:1>*<noident>
fs/ioctl.c:202:14: got struct fiemap_extent *[assigned] fi_extents_start
fs/ioctl.c:212:27: warning: incorrect type in argument 1 (different address spaces)
fs/ioctl.c:212:27: expected void [noderef] <asn:1>*dst
fs/ioctl.c:212:27: got char *<noident>
Also add 'ufiemap' variable to eliminate unnecessary casts.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/jffs2')
0 files changed, 0 insertions, 0 deletions