Re: [PATCH] NVMe: fix type warning on 32-bit

From: Jens Axboe
Date: Fri May 29 2015 - 12:07:27 EST


On 05/28/2015 04:35 PM, Keith Busch wrote:
On Tue, 19 May 2015, Arnd Bergmann wrote:
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.


Thanks for the fix.

Acked-by: Keith Busch <keith.busch@xxxxxxxxx>

Picked up for this series.

--
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/