(resend) Move the reqsk_queue_yank_listen_sk from header
Subsystems (3)
PATCH 2/2 (resend) Move the reqsk_queue_yank_listen_sk from header
This function is used in the net/core/request_sock.c only. No need in keeping it in the header file.
Signed-off-by Pavel Emelyanov <[email protected]>
---
include/net/request_sock.h +0 -12
@@ -124,18 +124,6 @@ struct request_sock_queue {extern int reqsk_queue_alloc (struct request_sock_queue *queue,unsigned int nr_table_entries); -static inline struct listen_sock *reqsk_queue_yank_listen_sk (struct request_sock_queue *queue) -{ -struct listen_sock *lopt; - -write_lock_bh (&queue->syn_wait_lock); - lopt = queue->listen_opt; - queue->listen_opt =NULL ; -write_unlock_bh (&queue->syn_wait_lock); - -return lopt; -} -extern void __reqsk_queue_destroy (struct request_sock_queue *queue);extern void reqsk_queue_destroy (struct request_sock_queue *queue);
net/core/request_sock.c +13 -0
@@ -93,6 +93,19 @@ void __reqsk_queue_destroy(struct request_sock_queue *queue)EXPORT_SYMBOL (__reqsk_queue_destroy); +static inline struct listen_sock *reqsk_queue_yank_listen_sk ( +struct request_sock_queue *queue) +{ +struct listen_sock *lopt; + +write_lock_bh (&queue->syn_wait_lock); + lopt = queue->listen_opt; + queue->listen_opt =NULL ; +write_unlock_bh (&queue->syn_wait_lock); + +return lopt; +} +void reqsk_queue_destroy (struct request_sock_queue *queue) {/* make all the listen_opt local to us */