RE: [PATCH] scm: remove use CMSG{_COMPAT}_ALIGN(sizeof(struct {compat_}cmsghdr))

2017-01-04 Thread YUAN Linyu
Thanks > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Thursday, January 05, 2017 2:25 AM > To: cug...@163.com > Cc: netdev@vger.kernel.org; YUAN Linyu > Subject: Re: [PATCH] scm: remove use CMSG{_COMPAT}_ALIGN(sizeof(struct > {compat

Re: [PATCH] scm: remove use CMSG{_COMPAT}_ALIGN(sizeof(struct {compat_}cmsghdr))

2017-01-04 Thread David Miller
From: yuan linyu Date: Tue, 3 Jan 2017 20:42:17 +0800 > From: yuan linyu > > 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

[PATCH] scm: remove use CMSG{_COMPAT}_ALIGN(sizeof(struct {compat_}cmsghdr))

2017-01-03 Thread yuan linyu
From: yuan linyu 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 --- include/linux/socket.h | 6 +++--- net/compat.c