Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[TIPC]: Eliminate "sparse" symbol warnings

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>

authored by

Allan Stephens and committed by
David S. Miller
0e0609bb e247a8f5

+15 -8
+9
include/net/tipc/tipc_bearer.h
··· 99 99 char name[TIPC_MAX_BEARER_NAME]; 100 100 }; 101 101 102 + /* 103 + * TIPC routines available to supported media types 104 + */ 102 105 103 106 int tipc_register_media(u32 media_type, 104 107 char *media_name, ··· 126 123 int tipc_enable_bearer(const char *bearer_name, u32 bcast_scope, u32 priority); 127 124 int tipc_disable_bearer(const char *name); 128 125 126 + /* 127 + * Routines made available to TIPC by supported media types 128 + */ 129 + 130 + int tipc_eth_media_start(void); 131 + void tipc_eth_media_stop(void); 129 132 130 133 #endif 131 134
-8
net/tipc/core.c
··· 48 48 #include "subscr.h" 49 49 #include "config.h" 50 50 51 - int tipc_eth_media_start(void); 52 - void tipc_eth_media_stop(void); 53 - int tipc_handler_start(void); 54 - void tipc_handler_stop(void); 55 - int tipc_socket_init(void); 56 - void tipc_socket_stop(void); 57 - int tipc_netlink_start(void); 58 - void tipc_netlink_stop(void); 59 51 60 52 #define TIPC_MOD_VER "1.6.2" 61 53
+6
net/tipc/core.h
··· 180 180 extern void tipc_core_stop(void); 181 181 extern int tipc_core_start_net(void); 182 182 extern void tipc_core_stop_net(void); 183 + extern int tipc_handler_start(void); 184 + extern void tipc_handler_stop(void); 185 + extern int tipc_netlink_start(void); 186 + extern void tipc_netlink_stop(void); 187 + extern int tipc_socket_init(void); 188 + extern void tipc_socket_stop(void); 183 189 184 190 static inline int delimit(int val, int min, int max) 185 191 {