]> git.karo-electronics.de Git - linux-beck.git/commitdiff
net: socket: preferred __aligned(size) for control buffer
authorAmit Kushwaha <kushwaha.a@samsung.com>
Thu, 8 Dec 2016 12:51:53 +0000 (18:21 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Dec 2016 23:20:46 +0000 (18:20 -0500)
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>
net/socket.c

index e6318943ad07045f88e36c77787d41c5e28c16df..58353835497d9cebb139d276a383af858c867e8e 100644 (file)
@@ -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;