netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tipc: define needless global scoped variable static
@ 2010-03-31  0:24 Hagen Paul Pfeifer
  2010-03-31  6:57 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Hagen Paul Pfeifer @ 2010-03-31  0:24 UTC (permalink / raw)
  To: netdev; +Cc: per.liden, davem

struct _zone *tipc_zones has local scope level and
should defined with the correct scoping.

CC: Per Liden <per.liden@nospam.ericsson.com>
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
---
 net/tipc/net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/tipc/net.c b/net/tipc/net.c
index 79ce8fa..d7cd1e0 100644
--- a/net/tipc/net.c
+++ b/net/tipc/net.c
@@ -116,7 +116,7 @@
 */
 
 DEFINE_RWLOCK(tipc_net_lock);
-struct _zone *tipc_zones[256] = { NULL, };
+static struct _zone *tipc_zones[256] = { NULL, };
 struct network tipc_net = { tipc_zones };
 
 struct tipc_node *tipc_net_select_remote_node(u32 addr, u32 ref)
-- 
1.6.6.196.g1f735.dirty


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

* Re: [PATCH] tipc: define needless global scoped variable static
  2010-03-31  0:24 [PATCH] tipc: define needless global scoped variable static Hagen Paul Pfeifer
@ 2010-03-31  6:57 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-03-31  6:57 UTC (permalink / raw)
  To: hagen; +Cc: netdev, per.liden

From: Hagen Paul Pfeifer <hagen@jauu.net>
Date: Wed, 31 Mar 2010 02:24:12 +0200

> struct _zone *tipc_zones has local scope level and
> should defined with the correct scoping.
> 
> CC: Per Liden <per.liden@nospam.ericsson.com>
> Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>

Applied, thanks.

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

end of thread, other threads:[~2010-03-31  6:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-31  0:24 [PATCH] tipc: define needless global scoped variable static Hagen Paul Pfeifer
2010-03-31  6:57 ` 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).