Re: [PATCH] net: remove address space warnings in net/socket.c

From: David Miller
Date: Wed Sep 08 2010 - 16:46:23 EST


From: Namhyung Kim <namhyung@xxxxxxxxx>
Date: Tue, 7 Sep 2010 22:55:00 +0900

> Casts __kernel to __user pointer require __force markup, so add it. Also
> sock_get/setsockopt() takes @optval and/or @optlen arguments as user pointers
> but were taking kernel pointers, use new variables 'uoptval' and/or 'uoptlen'
> to fix it. These remove following warnings from sparse:
...
> Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>

Applied to net-next-2.6, thank you.
--
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/