IB/iser: Fix sparse warnings
authorSagi Grimberg <sagig@mellanox.com>
Sun, 7 Dec 2014 14:09:57 +0000 (16:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 May 2017 05:44:09 +0000 (07:44 +0200)
commit1b4b9dc59074b1bbd32aca0426e6c259304b6b0c
tree8d16651738747fd85a3d23a0238c5c06aa98e064
parent1ad066af8bb6ff382821502c3737e2a1352922e0
IB/iser: Fix sparse warnings

commit 49df2781b101a729e9f46eddc845a587fc5665a8 upstream.

Use uintptr_t to handle wr_id casting, which was found by Kbuild test
robot and smatch.  Also remove an internal definition of variable which
potentially shadows an external one (and make sparse happy).

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/iser/iser_memory.c
drivers/infiniband/ulp/iser/iser_verbs.c