]> git.baikalelectronics.ru Git - kernel.git/commit
net: add a CMSG_USER_DATA macro
authorChristoph Hellwig <hch@lst.de>
Mon, 11 May 2020 11:59:11 +0000 (13:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 May 2020 23:59:16 +0000 (16:59 -0700)
commit4d72391055ac16a868187c421b70b137a28bb7bb
tree9d4b3f468d481aa66b31e5cdb6ad532458889c4d
parent557f6b071e6a0ffab263ee0c52750321f6759477
net: add a CMSG_USER_DATA macro

Add a variant of CMSG_DATA that operates on user pointer to avoid
sparse warnings about casting to/from user pointers.  Also fix up
CMSG_DATA to rely on the gcc extension that allows void pointer
arithmetics to cut down on the amount of casts.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/socket.h
net/core/scm.c