summaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
authorAmit Kushwaha <kushwaha.a@samsung.com>2016-12-08 13:51:53 +0100
committerDavid S. Miller <davem@davemloft.net>2016-12-09 00:20:46 +0100
commit846cc1231a0a020c6e16017ff37d3000c18bd957 (patch)
tree1623185aeb9f278ff7581e1a9bd8f7ba60d8a6c6 /net/socket.c
parentMerge branch 'liquidio-VF-offloads-and-stats' (diff)
downloadlinux-846cc1231a0a020c6e16017ff37d3000c18bd957.tar.xz
linux-846cc1231a0a020c6e16017ff37d3000c18bd957.zip
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 <kushwaha.a@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c
index e6318943ad07..58353835497d 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;