diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-13 09:20:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-16 14:13:24 -0400 |
commit | 31e3c3f6f1f9b154981a0e6620df700463db30ee (patch) | |
tree | 5ed74529c528cc9a09d6f8c9a5083aaf4849b62e /net/tipc/discover.c | |
parent | 15419227f773b6c1b5fae44bde876078a9204caa (diff) |
tipc: cleanup function namespace
Do some cleanups of TIPC based on make namespacecheck
1. Don't export unused symbols
2. Eliminate dead code
3. Make functions and variables local
4. Rename buf_acquire to tipc_buf_acquire since it is used in several files
Compile tested only.
This make break out of tree kernel modules that depend on TIPC routines.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Acked-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/discover.c')
-rw-r--r-- | net/tipc/discover.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/net/tipc/discover.c b/net/tipc/discover.c index dbd79c67d7c0..4a7cd3719b78 100644 --- a/net/tipc/discover.c +++ b/net/tipc/discover.c | |||
@@ -68,20 +68,6 @@ struct link_req { | |||
68 | unsigned int timer_intv; | 68 | unsigned int timer_intv; |
69 | }; | 69 | }; |
70 | 70 | ||
71 | |||
72 | /* | ||
73 | * disc_lost_link(): A link has lost contact | ||
74 | */ | ||
75 | |||
76 | void tipc_disc_link_event(u32 addr, char *name, int up) | ||
77 | { | ||
78 | if (in_own_cluster(addr)) | ||
79 | return; | ||
80 | /* | ||
81 | * Code for inter cluster link setup here | ||
82 | */ | ||
83 | } | ||
84 | |||
85 | /** | 71 | /** |
86 | * tipc_disc_init_msg - initialize a link setup message | 72 | * tipc_disc_init_msg - initialize a link setup message |
87 | * @type: message type (request or response) | 73 | * @type: message type (request or response) |
@@ -95,7 +81,7 @@ static struct sk_buff *tipc_disc_init_msg(u32 type, | |||
95 | u32 dest_domain, | 81 | u32 dest_domain, |
96 | struct bearer *b_ptr) | 82 | struct bearer *b_ptr) |
97 | { | 83 | { |
98 | struct sk_buff *buf = buf_acquire(DSC_H_SIZE); | 84 | struct sk_buff *buf = tipc_buf_acquire(DSC_H_SIZE); |
99 | struct tipc_msg *msg; | 85 | struct tipc_msg *msg; |
100 | 86 | ||
101 | if (buf) { | 87 | if (buf) { |