From: Amit Kushwaha Date: Thu, 8 Dec 2016 12:51:53 +0000 (+0530) Subject: net: socket: preferred __aligned(size) for control buffer X-Git-Tag: v4.14-rc1~1973^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=846cc1231a0a020c6e16017ff37d3000c18bd957;p=platform%2Fkernel%2Flinux-rpi.git net: socket: preferred __aligned(size) for control buffer This patch cleanup checkpatch.pl warning WARNING: __aligned(size) is preferred over __attribute__((aligned(size))) Signed-off-by: Amit Kushwaha Signed-off-by: David S. Miller --- diff --git a/net/socket.c b/net/socket.c index e631894..5835383 100644 --- a/net/socket.c +++ b/net/socket.c @@ -1,3 +1,4 @@ + /* * NET An implementation of the SOCKET network access protocol. * @@ -1918,7 +1919,7 @@ static int ___sys_sendmsg(struct socket *sock, struct user_msghdr __user *msg, struct sockaddr_storage address; struct iovec iovstack[UIO_FASTIOV], *iov = iovstack; unsigned char ctl[sizeof(struct cmsghdr) + 20] - __attribute__ ((aligned(sizeof(__kernel_size_t)))); + __aligned(sizeof(__kernel_size_t)); /* 20 is size of ipv6_pktinfo */ unsigned char *ctl_buf = ctl; int ctl_len;