]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: fix another 32-bit build warning
authorArnd Bergmann <arnd@arndb.de>
Tue, 8 Dec 2015 15:22:17 +0000 (16:22 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:41 +0000 (13:40 -0700)
commit450697af05b54c0c6f74790e1de3ffe36db972be
tree336e35d209bef0a2d7a452acee6277be63793736
parentad30cbdb5bdad9483969161121c1ed71fdb760d1
nvme: fix another 32-bit build warning

The nvme_user_cmd function was recently moved around from one file
to another, which made a warning reappear that I had fixed before
at some point:

drivers/nvme/host/core.c: In function 'nvme_user_cmd':
drivers/nvme/host/core.c:424:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

This applies the same workaround that we have elsewhere in the
driver with an extra type cast to uintptr_t.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 1673f1f08c88 ("nvme: move block_device_operations and ns/ctrl freeing to common code")
Link: https://lkml.org/lkml/2015/10/9/611
Signed-off-by: Jens Axboe <axboe@fb.com>
Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c