staging: lustre: Fix address space mismatch in ksocknal_recv_iov()
authorArtemiy Volkov <artemiyv@acm.org>
Fri, 12 Sep 2014 16:31:33 +0000 (02:31 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Sep 2014 17:00:24 +0000 (10:00 -0700)
commit2101f98caf8246cbf6b7ad40a585c017379c389e
treebfccbf285a473aa338cb0f4cbfbb07701dfb14b6
parent4127ef9b55be3e8019320064d83d9eeed789e35d
staging: lustre: Fix address space mismatch in ksocknal_recv_iov()

This patch fixes the following sparse warnings:

drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c:284:51: warning:
cast removes address space of expression
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c:284:39: warning:
incorrect type in assignment (different address spaces)
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c:284:39:    expected
void [noderef] <asn:1>*iov_base
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c:284:39:    got
void *<noident>

by simplifying an expression containing non-__user-attributed type names.

Signed-off-by: Artemiy Volkov <artemiyv@acm.org>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c