]> git.baikalelectronics.ru Git - kernel.git/commit
compat_hdio_ioctl: Fix a declaration
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 23 Aug 2017 22:29:11 +0000 (15:29 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 31 Aug 2017 21:32:41 +0000 (17:32 -0400)
commit6baee0a64d75294660e1081964ab4ef930261103
treedd55b8c4c936c9d6a7131a476caddfbeb478dda7
parentbe79ba06dc146ddd12278e4090f4ba183887dd93
compat_hdio_ioctl: Fix a declaration

This patch avoids that sparse reports the following warning messages:

block/compat_ioctl.c:85:11: warning: incorrect type in assignment (different address spaces)
block/compat_ioctl.c:85:11:    expected unsigned long *[noderef] <asn:1>p
block/compat_ioctl.c:85:11:    got void [noderef] <asn:1>*
block/compat_ioctl.c:91:21: warning: incorrect type in argument 1 (different address spaces)
block/compat_ioctl.c:91:21:    expected void const volatile [noderef] <asn:1>*<noident>
block/compat_ioctl.c:91:21:    got unsigned long *[noderef] <asn:1>p
block/compat_ioctl.c:87:53: warning: dereference of noderef expression
block/compat_ioctl.c:91:21: warning: dereference of noderef expression

Fixes: commit 61f2402bb676 ("generic ...copy_..._user primitives")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
block/compat_ioctl.c