]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/rxrpc/sendmsg.c
scm: remove use CMSG{_COMPAT}_ALIGN(sizeof(struct {compat_}cmsghdr))
authoryuan linyu <Linyu.Yuan@alcatel-sbell.com.cn>
Tue, 3 Jan 2017 12:42:17 +0000 (20:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2017 18:04:37 +0000 (13:04 -0500)
commit1ff8cebf49ed9e9ca2ae44b5c4176aef9c21af9c
tree0f0a0657be00abd5c252ebe5ce59a4dca04a3345
parentec2507d2a3060a970fa314556891828cfd60093e
scm: remove use CMSG{_COMPAT}_ALIGN(sizeof(struct {compat_}cmsghdr))

sizeof(struct cmsghdr) and sizeof(struct compat_cmsghdr) already aligned.
remove use CMSG_ALIGN(sizeof(struct cmsghdr)) and
CMSG_COMPAT_ALIGN(sizeof(struct compat_cmsghdr)) keep code consistent.

Signed-off-by: yuan linyu <Linyu.Yuan@alcatel-sbell.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/socket.h
net/compat.c
net/core/scm.c
net/ipv4/ip_sockglue.c
net/rxrpc/sendmsg.c