Re: [PATCH 1/2] net/core: remove address space warnings onverify_iovec()

From: David Miller
Date: Thu Sep 09 2010 - 18:02:45 EST


From: Namhyung Kim <namhyung@xxxxxxxxx>
Date: Wed, 8 Sep 2010 22:48:47 +0900

> move_addr_to_kernel() and copy_from_user() requires their argument
> as __user pointer but were missing proper markups. Add it.
> This removes following warnings from sparse.
>
> net/core/iovec.c:44:52: warning: incorrect type in argument 1 (different address spaces)
> net/core/iovec.c:44:52: expected void [noderef] <asn:1>*uaddr
> net/core/iovec.c:44:52: got void *msg_name
> net/core/iovec.c:55:34: warning: incorrect type in argument 2 (different address spaces)
> net/core/iovec.c:55:34: expected void const [noderef] <asn:1>*from
> net/core/iovec.c:55:34: got struct iovec *msg_iov
>
> Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>

Applied.
--
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/