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/core.h | |
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/core.h')
-rw-r--r-- | net/tipc/core.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/net/tipc/core.h b/net/tipc/core.h index 188799017abd..e19389e57227 100644 --- a/net/tipc/core.h +++ b/net/tipc/core.h | |||
@@ -83,9 +83,7 @@ | |||
83 | * Note: TIPC_LOG is configured to echo its output to the system console; | 83 | * Note: TIPC_LOG is configured to echo its output to the system console; |
84 | * user-defined buffers can be configured to do the same thing. | 84 | * user-defined buffers can be configured to do the same thing. |
85 | */ | 85 | */ |
86 | |||
87 | extern struct print_buf *const TIPC_NULL; | 86 | extern struct print_buf *const TIPC_NULL; |
88 | extern struct print_buf *const TIPC_CONS; | ||
89 | extern struct print_buf *const TIPC_LOG; | 87 | extern struct print_buf *const TIPC_LOG; |
90 | 88 | ||
91 | void tipc_printf(struct print_buf *, const char *fmt, ...); | 89 | void tipc_printf(struct print_buf *, const char *fmt, ...); |
@@ -204,10 +202,7 @@ extern atomic_t tipc_user_count; | |||
204 | * Routines available to privileged subsystems | 202 | * Routines available to privileged subsystems |
205 | */ | 203 | */ |
206 | 204 | ||
207 | extern int tipc_core_start(void); | 205 | extern int tipc_core_start_net(unsigned long); |
208 | extern void tipc_core_stop(void); | ||
209 | extern int tipc_core_start_net(unsigned long addr); | ||
210 | extern void tipc_core_stop_net(void); | ||
211 | extern int tipc_handler_start(void); | 206 | extern int tipc_handler_start(void); |
212 | extern void tipc_handler_stop(void); | 207 | extern void tipc_handler_stop(void); |
213 | extern int tipc_netlink_start(void); | 208 | extern int tipc_netlink_start(void); |
@@ -328,7 +323,7 @@ static inline struct tipc_msg *buf_msg(struct sk_buff *skb) | |||
328 | return (struct tipc_msg *)skb->data; | 323 | return (struct tipc_msg *)skb->data; |
329 | } | 324 | } |
330 | 325 | ||
331 | extern struct sk_buff *buf_acquire(u32 size); | 326 | extern struct sk_buff *tipc_buf_acquire(u32 size); |
332 | 327 | ||
333 | /** | 328 | /** |
334 | * buf_discard - frees a TIPC message buffer | 329 | * buf_discard - frees a TIPC message buffer |