]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: fix type warning on 32-bit
authorArnd Bergmann <arnd@arndb.de>
Tue, 19 May 2015 15:05:40 +0000 (17:05 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 29 May 2015 16:06:21 +0000 (10:06 -0600)
commitc1eeb06d7b6b34cff279517d9a79d4b9fb2de8b8
tree6cc32d362f0b820f8f2828f32b6b544e9a42ad7a
parent2e7a3c71a66d5c26605184c6ddfcfd534bdd2a10
NVMe: fix type warning on 32-bit

A recent change to the ioctl handling caused a new harmless
warning in the NVMe driver on all 32-bit machines:

drivers/block/nvme-core.c: In function 'nvme_submit_io':
drivers/block/nvme-core.c:1794:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

In order to shup up that warning, this introduces a new
temporary variable that uses a double cast to extract
the pointer from an __u64 structure member.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 30915aab4ad ("NVMe: Meta data handling through submit io ioctl")
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c