OSDN Git Service

IB/iser: Fix sparse warnings
authorSagi Grimberg <sagig@mellanox.com>
Sun, 7 Dec 2014 14:09:57 +0000 (16:09 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:11:44 +0000 (18:11 -0800)
commit49df2781b101a729e9f46eddc845a587fc5665a8
treea3674caff11a6c1618ef354a97d237ff048f1b21
parent6ec9d4d2310e8fc54fc638e4454271d1fcaefa95
IB/iser: Fix sparse warnings

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>
drivers/infiniband/ulp/iser/iser_memory.c
drivers/infiniband/ulp/iser/iser_verbs.c