linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][net-next] net: dsa: make function ksz_rcv static
@ 2017-06-01 12:22 Colin King
  2017-06-01 13:53 ` Woojung.Huh
  2017-06-01 16:12 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Colin King @ 2017-06-01 12:22 UTC (permalink / raw)
  To: Woojung Huh, Microchip Linux Driver Support, Andrew Lunn,
	Vivien Didelot, Florian Fainelli, David S . Miller, netdev
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

function ksz_rcv can be made static as it does not need to be
in global scope. Reformat arguments to make it checkpatch warning
free too.

Cleans up sparse warning: "symbol 'ksz_rcv' was not declared. Should
it be static?"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 net/dsa/tag_ksz.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/dsa/tag_ksz.c b/net/dsa/tag_ksz.c
index 0b08a40b493a..dfcd2fff5b13 100644
--- a/net/dsa/tag_ksz.c
+++ b/net/dsa/tag_ksz.c
@@ -72,8 +72,9 @@ static struct sk_buff *ksz_xmit(struct sk_buff *skb, struct net_device *dev)
 	return nskb;
 }
 
-struct sk_buff *ksz_rcv(struct sk_buff *skb, struct net_device *dev,
-			struct packet_type *pt, struct net_device *orig_dev)
+static struct sk_buff *ksz_rcv(struct sk_buff *skb, struct net_device *dev,
+			       struct packet_type *pt,
+			       struct net_device *orig_dev)
 {
 	struct dsa_switch_tree *dst = dev->dsa_ptr;
 	struct dsa_switch *ds;
-- 
2.11.0

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

* RE: [PATCH][net-next] net: dsa: make function ksz_rcv static
  2017-06-01 12:22 [PATCH][net-next] net: dsa: make function ksz_rcv static Colin King
@ 2017-06-01 13:53 ` Woojung.Huh
  2017-06-01 16:12 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Woojung.Huh @ 2017-06-01 13:53 UTC (permalink / raw)
  To: colin.king, UNGLinuxDriver, andrew, vivien.didelot, f.fainelli,
	davem, netdev
  Cc: kernel-janitors, linux-kernel

> function ksz_rcv can be made static as it does not need to be
> in global scope. Reformat arguments to make it checkpatch warning
> free too.
> 
> Cleans up sparse warning: "symbol 'ksz_rcv' was not declared. Should
> it be static?"
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Reviewed-by: Woojung Huh <Woojung.Huh@microchip.com>

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

* Re: [PATCH][net-next] net: dsa: make function ksz_rcv static
  2017-06-01 12:22 [PATCH][net-next] net: dsa: make function ksz_rcv static Colin King
  2017-06-01 13:53 ` Woojung.Huh
@ 2017-06-01 16:12 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-06-01 16:12 UTC (permalink / raw)
  To: colin.king
  Cc: Woojung.Huh, UNGLinuxDriver, andrew, vivien.didelot, f.fainelli,
	netdev, kernel-janitors, linux-kernel

From: Colin King <colin.king@canonical.com>
Date: Thu,  1 Jun 2017 13:22:42 +0100

> From: Colin Ian King <colin.king@canonical.com>
> 
> function ksz_rcv can be made static as it does not need to be
> in global scope. Reformat arguments to make it checkpatch warning
> free too.
> 
> Cleans up sparse warning: "symbol 'ksz_rcv' was not declared. Should
> it be static?"
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Applied.

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

end of thread, other threads:[~2017-06-01 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-01 12:22 [PATCH][net-next] net: dsa: make function ksz_rcv static Colin King
2017-06-01 13:53 ` Woojung.Huh
2017-06-01 16:12 ` David Miller

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).