• Namhyung Kim's avatar
    net/core: remove address space warnings on verify_iovec() · a700d8be
    Namhyung Kim authored
    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: default avatarNamhyung Kim <namhyung@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a700d8be
iovec.c 5.73 KB