• Arnd Bergmann's avatar
    NVMe: fix type warning on 32-bit · fec558b5
    Arnd Bergmann authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Fixes: a67a9513 ("NVMe: Meta data handling through submit io ioctl")
    Acked-by: default avatarKeith Busch <keith.busch@intel.com>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    fec558b5
nvme-core.c 78.7 KB