netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: socket: preferred __aligned(size) for control buffer
@ 2016-12-08 12:51 kushwaha.a
  2016-12-08 23:21 ` David Miller
  2016-12-09 11:14 ` Sergei Shtylyov
  0 siblings, 2 replies; 3+ messages in thread
From: kushwaha.a @ 2016-12-08 12:51 UTC (permalink / raw)
  To: davem; +Cc: netdev, akkushwaha9896

From: Amit Kushwaha <kushwaha.a@samsung.com>

This patch cleanup checkpatch.pl warning
WARNING: __aligned(size) is preferred over __attribute__((aligned(size)))

Signed-off-by: Amit Kushwaha <kushwaha.a@samsung.com>
---
 net/socket.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: socket: preferred __aligned(size) for control buffer
  2016-12-08 12:51 [PATCH] net: socket: preferred __aligned(size) for control buffer kushwaha.a
@ 2016-12-08 23:21 ` David Miller
  2016-12-09 11:14 ` Sergei Shtylyov
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2016-12-08 23:21 UTC (permalink / raw)
  To: kushwaha.a; +Cc: netdev, akkushwaha9896

From: kushwaha.a@samsung.com
Date: Thu, 08 Dec 2016 18:21:53 +0530

> From: Amit Kushwaha <kushwaha.a@samsung.com>
> 
> This patch cleanup checkpatch.pl warning
> WARNING: __aligned(size) is preferred over __attribute__((aligned(size)))
> 
> Signed-off-by: Amit Kushwaha <kushwaha.a@samsung.com>

Applied to net-next.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: socket: preferred __aligned(size) for control buffer
  2016-12-08 12:51 [PATCH] net: socket: preferred __aligned(size) for control buffer kushwaha.a
  2016-12-08 23:21 ` David Miller
@ 2016-12-09 11:14 ` Sergei Shtylyov
  1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2016-12-09 11:14 UTC (permalink / raw)
  To: kushwaha.a, davem; +Cc: netdev, akkushwaha9896

Hello!

On 12/8/2016 3:51 PM, kushwaha.a@samsung.com wrote:

> From: Amit Kushwaha <kushwaha.a@samsung.com>
>
> This patch cleanup checkpatch.pl warning
> WARNING: __aligned(size) is preferred over __attribute__((aligned(size)))
>
> Signed-off-by: Amit Kushwaha <kushwaha.a@samsung.com>
> ---
>  net/socket.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> 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 @@
> +

    Why?

>  /*
>   * NET		An implementation of the SOCKET network access protocol.
>   *
[...]

MBR, Sergei

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-09 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-08 12:51 [PATCH] net: socket: preferred __aligned(size) for control buffer kushwaha.a
2016-12-08 23:21 ` David Miller
2016-12-09 11:14 ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).