diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-10-06 22:29:48 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-10-12 21:09:40 +0200 |
commit | 835da3f99d329b1160a1f7fc82c7ac81163d63d0 (patch) | |
tree | 8614dca9bfd9d2147c1d8af428b44ba6405fd80b /scripts/Makefile.dtbinst | |
parent | writeback: fix incorrect calculation of available memory for memcg domains (diff) | |
download | linux-835da3f99d329b1160a1f7fc82c7ac81163d63d0.tar.xz linux-835da3f99d329b1160a1f7fc82c7ac81163d63d0.zip |
nvme: fix 32-bit build warning
Compiling the nvme driver on 32-bit warns about a cast from a __u64
variable to a pointer:
drivers/block/nvme-core.c: In function 'nvme_submit_io':
drivers/block/nvme-core.c:1847:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void __user *)io.addr, length, NULL, 0);
The cast here is intentional and safe, so we can shut up the
gcc warning by adding an intermediate cast to 'uintptr_t'.
I had previously submitted a patch to fix this problem in the
nvme driver, but it was accepted on the same day that two new
warnings got added.
For clarification, I also change the third instance of this cast
to use uintptr_t instead of unsigned long now.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: d29ec8241c10e ("nvme: submit internal commands through the block layer")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'scripts/Makefile.dtbinst')
0 files changed, 0 insertions, 0 deletions