All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] net: fix warnings in include/net/af_unix.h
@ 2018-10-30  3:34 Bo YU
  2018-10-30  3:42 ` [PATCH 1/2] net: add an identifier name for 'struct sock *' Bo YU
  2018-10-30  3:42 ` [PATCH 2/2] net: drop a space before tabs Bo YU
  0 siblings, 2 replies; 5+ messages in thread
From: Bo YU @ 2018-10-30  3:34 UTC (permalink / raw)
  To: yuzibode; +Cc: Bo YU, netdev

Fix two warnings from checkpatch.pl.

Bo YU (2):
  net: add an identifier name for 'struct sock *'
  net: drop a space before tabs

 include/net/af_unix.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

* [PATCH 1/2] net: add an identifier name for 'struct sock *'
  2018-10-30  3:34 [PATCH 0/2] net: fix warnings in include/net/af_unix.h Bo YU
@ 2018-10-30  3:42 ` Bo YU
  2018-10-31 19:37   ` David Miller
  2018-10-30  3:42 ` [PATCH 2/2] net: drop a space before tabs Bo YU
  1 sibling, 1 reply; 5+ messages in thread
From: Bo YU @ 2018-10-30  3:42 UTC (permalink / raw)
  To: davem; +Cc: yuzibode, Bo YU, netdev

Fix a warning from checkpatch:
function definition argument 'struct sock *' should also have an
identifier name in include/net/af_unix.h.

Signed-off-by: Bo YU <tsu.yubo@gmail.com>
---
 include/net/af_unix.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/af_unix.h b/include/net/af_unix.h
index e2695c4bf358..d53aea859a76 100644
--- a/include/net/af_unix.h
+++ b/include/net/af_unix.h
@@ -13,7 +13,7 @@ void unix_notinflight(struct user_struct *user, struct file *fp);
 void unix_gc(void);
 void wait_for_unix_gc(void);
 struct sock *unix_get_socket(struct file *filp);
-struct sock *unix_peer_get(struct sock *);
+struct sock *unix_peer_get(struct sock *sk);
 
 #define UNIX_HASH_SIZE	256
 #define UNIX_HASH_BITS	8
-- 
2.11.0

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

* [PATCH 2/2] net: drop a space before tabs
  2018-10-30  3:34 [PATCH 0/2] net: fix warnings in include/net/af_unix.h Bo YU
  2018-10-30  3:42 ` [PATCH 1/2] net: add an identifier name for 'struct sock *' Bo YU
@ 2018-10-30  3:42 ` Bo YU
  2018-10-31 19:38   ` David Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Bo YU @ 2018-10-30  3:42 UTC (permalink / raw)
  To: davem; +Cc: yuzibode, Bo YU, netdev

Fix a warning from checkpatch.pl:'please no space before tabs'
in include/net/af_unix.h

Signed-off-by: Bo YU <tsu.yubo@gmail.com>
---
 include/net/af_unix.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/af_unix.h b/include/net/af_unix.h
index d53aea859a76..ddbba838d048 100644
--- a/include/net/af_unix.h
+++ b/include/net/af_unix.h
@@ -40,7 +40,7 @@ struct unix_skb_parms {
 	u32			consumed;
 } __randomize_layout;
 
-#define UNIXCB(skb) 	(*(struct unix_skb_parms *)&((skb)->cb))
+#define UNIXCB(skb)	(*(struct unix_skb_parms *)&((skb)->cb))
 
 #define unix_state_lock(s)	spin_lock(&unix_sk(s)->lock)
 #define unix_state_unlock(s)	spin_unlock(&unix_sk(s)->lock)
-- 
2.11.0

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

* Re: [PATCH 1/2] net: add an identifier name for 'struct sock *'
  2018-10-30  3:42 ` [PATCH 1/2] net: add an identifier name for 'struct sock *' Bo YU
@ 2018-10-31 19:37   ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2018-10-31 19:37 UTC (permalink / raw)
  To: tsu.yubo; +Cc: yuzibode, netdev

From: Bo YU <tsu.yubo@gmail.com>
Date: Mon, 29 Oct 2018 23:42:09 -0400

> Fix a warning from checkpatch:
> function definition argument 'struct sock *' should also have an
> identifier name in include/net/af_unix.h.
> 
> Signed-off-by: Bo YU <tsu.yubo@gmail.com>

Applied.

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

* Re: [PATCH 2/2] net: drop a space before tabs
  2018-10-30  3:42 ` [PATCH 2/2] net: drop a space before tabs Bo YU
@ 2018-10-31 19:38   ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2018-10-31 19:38 UTC (permalink / raw)
  To: tsu.yubo; +Cc: yuzibode, netdev

From: Bo YU <tsu.yubo@gmail.com>
Date: Mon, 29 Oct 2018 23:42:10 -0400

> Fix a warning from checkpatch.pl:'please no space before tabs'
> in include/net/af_unix.h
> 
> Signed-off-by: Bo YU <tsu.yubo@gmail.com>

Applied.

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

end of thread, other threads:[~2018-11-01  4:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-30  3:34 [PATCH 0/2] net: fix warnings in include/net/af_unix.h Bo YU
2018-10-30  3:42 ` [PATCH 1/2] net: add an identifier name for 'struct sock *' Bo YU
2018-10-31 19:37   ` David Miller
2018-10-30  3:42 ` [PATCH 2/2] net: drop a space before tabs Bo YU
2018-10-31 19:38   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.