]> 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)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Aug 2017 14:40:17 +0000 (08:40 -0600)
commit4224a128132997acee276023c5090703ac9f66ca
tree8965c343dc8cbd76b1b7817da062a7b9ad6d9bdf
parent29b9129ece4f8ecd80a0961f2b03e87742228456
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 3db6ef9c3048 ("generic ...copy_..._user primitives")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/compat_ioctl.c