diff options
Diffstat (limited to 'net/tipc/core.h')
| -rw-r--r-- | net/tipc/core.h | 42 | 
1 files changed, 0 insertions, 42 deletions
| diff --git a/net/tipc/core.h b/net/tipc/core.h index 2761af36d141..13837e0e56b1 100644 --- a/net/tipc/core.h +++ b/net/tipc/core.h | |||
| @@ -130,13 +130,6 @@ void tipc_msg_dbg(struct print_buf *, struct tipc_msg *, const char *); | |||
| 130 | #define ELINKCONG EAGAIN /* link congestion <=> resource unavailable */ | 130 | #define ELINKCONG EAGAIN /* link congestion <=> resource unavailable */ | 
| 131 | 131 | ||
| 132 | /* | 132 | /* | 
| 133 | * TIPC operating mode routines | ||
| 134 | */ | ||
| 135 | #define TIPC_NOT_RUNNING 0 | ||
| 136 | #define TIPC_NODE_MODE 1 | ||
| 137 | #define TIPC_NET_MODE 2 | ||
| 138 | |||
| 139 | /* | ||
| 140 | * Global configuration variables | 133 | * Global configuration variables | 
| 141 | */ | 134 | */ | 
| 142 | 135 | ||
| @@ -151,7 +144,6 @@ extern int tipc_remote_management; | |||
| 151 | * Other global variables | 144 | * Other global variables | 
| 152 | */ | 145 | */ | 
| 153 | 146 | ||
| 154 | extern int tipc_mode; | ||
| 155 | extern int tipc_random; | 147 | extern int tipc_random; | 
| 156 | extern const char tipc_alphabet[]; | 148 | extern const char tipc_alphabet[]; | 
| 157 | 149 | ||
| @@ -168,16 +160,6 @@ extern void tipc_netlink_stop(void); | |||
| 168 | extern int tipc_socket_init(void); | 160 | extern int tipc_socket_init(void); | 
| 169 | extern void tipc_socket_stop(void); | 161 | extern void tipc_socket_stop(void); | 
| 170 | 162 | ||
| 171 | static inline int delimit(int val, int min, int max) | ||
| 172 | { | ||
| 173 | if (val > max) | ||
| 174 | return max; | ||
| 175 | if (val < min) | ||
| 176 | return min; | ||
| 177 | return val; | ||
| 178 | } | ||
| 179 | |||
| 180 | |||
| 181 | /* | 163 | /* | 
| 182 | * TIPC timer and signal code | 164 | * TIPC timer and signal code | 
| 183 | */ | 165 | */ | 
| @@ -279,28 +261,4 @@ static inline struct tipc_msg *buf_msg(struct sk_buff *skb) | |||
| 279 | 261 | ||
| 280 | extern struct sk_buff *tipc_buf_acquire(u32 size); | 262 | extern struct sk_buff *tipc_buf_acquire(u32 size); | 
| 281 | 263 | ||
| 282 | /** | ||
| 283 | * buf_discard - frees a TIPC message buffer | ||
| 284 | * @skb: message buffer | ||
| 285 | * | ||
| 286 | * Frees a message buffer. If passed NULL, just returns. | ||
| 287 | */ | ||
| 288 | |||
| 289 | static inline void buf_discard(struct sk_buff *skb) | ||
| 290 | { | ||
| 291 | kfree_skb(skb); | ||
| 292 | } | ||
| 293 | |||
| 294 | /** | ||
| 295 | * buf_linearize - convert a TIPC message buffer into a single contiguous piece | ||
| 296 | * @skb: message buffer | ||
| 297 | * | ||
| 298 | * Returns 0 on success. | ||
| 299 | */ | ||
| 300 | |||
| 301 | static inline int buf_linearize(struct sk_buff *skb) | ||
| 302 | { | ||
| 303 | return skb_linearize(skb); | ||
| 304 | } | ||
| 305 | |||
| 306 | #endif | 264 | #endif | 
