]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[TIPC]: Eliminate "sparse" symbol warnings
authorAllan Stephens <allan.stephens@windriver.com>
Thu, 6 Mar 2008 23:06:06 +0000 (15:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Mar 2008 23:06:06 +0000 (15:06 -0800)
This patch eliminates warnings about undeclared symbols.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tipc/tipc_bearer.h
net/tipc/core.c
net/tipc/core.h

index 2151a80cdf30cfa1214f72eed61b8b1095e785b7..ee2f304e49196de26c8160933a00be7c601ad79f 100644 (file)
@@ -99,6 +99,9 @@ struct tipc_bearer {
        char name[TIPC_MAX_BEARER_NAME];
 };
 
+/*
+ * TIPC routines available to supported media types
+ */
 
 int  tipc_register_media(u32 media_type,
                         char *media_name, 
@@ -123,6 +126,12 @@ void tipc_continue(struct tipc_bearer *tb_ptr);
 int tipc_enable_bearer(const char *bearer_name, u32 bcast_scope, u32 priority);
 int tipc_disable_bearer(const char *name);
 
+/*
+ * Routines made available to TIPC by supported media types
+ */
+
+int  tipc_eth_media_start(void);
+void tipc_eth_media_stop(void);
 
 #endif
 
index 9a5eb97684a26779fe4a7b9a227df12b9f671b5e..b41b0ac67c0bbe602511e977c0a132d489f7b5a4 100644 (file)
 #include "subscr.h"
 #include "config.h"
 
-int  tipc_eth_media_start(void);
-void tipc_eth_media_stop(void);
-int  tipc_handler_start(void);
-void tipc_handler_stop(void);
-int  tipc_socket_init(void);
-void tipc_socket_stop(void);
-int  tipc_netlink_start(void);
-void tipc_netlink_stop(void);
 
 #define TIPC_MOD_VER "1.6.2"
 
index feabca5808201be3083b015ae15ced8012574bfe..3fe9b70331d9a10f8d20583c7a07f4af1ed477be 100644 (file)
@@ -180,6 +180,12 @@ extern int  tipc_core_start(void);
 extern void tipc_core_stop(void);
 extern int  tipc_core_start_net(void);
 extern void tipc_core_stop_net(void);
+extern int  tipc_handler_start(void);
+extern void tipc_handler_stop(void);
+extern int  tipc_netlink_start(void);
+extern void tipc_netlink_stop(void);
+extern int  tipc_socket_init(void);
+extern void tipc_socket_stop(void);
 
 static inline int delimit(int val, int min, int max)
 {