Skip to content

Commit

Permalink
net: socket: preferred __aligned(size) for control buffer
Browse files Browse the repository at this point in the history
This patch cleanup checkpatch.pl warning
WARNING: __aligned(size) is preferred over __attribute__((aligned(size)))

Signed-off-by: Amit Kushwaha <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Amit Kushwaha authored and davem330 committed Dec 8, 2016
1 parent 7c43644 commit 846cc12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/socket.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* NET An implementation of the SOCKET network access protocol.
*
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 846cc12

Please sign in to comment.