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

sctp: make sctp_outq_flush() static

sctp_outq_flush() can now become static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Adrian Bunk and committed by
David S. Miller
abd0b198 a94f779f

+3 -2
-1
include/net/sctp/structs.h
··· 1161 1161 void sctp_outq_teardown(struct sctp_outq *); 1162 1162 void sctp_outq_free(struct sctp_outq*); 1163 1163 int sctp_outq_tail(struct sctp_outq *, struct sctp_chunk *chunk); 1164 - int sctp_outq_flush(struct sctp_outq *, int); 1165 1164 int sctp_outq_sack(struct sctp_outq *, struct sctp_sackhdr *); 1166 1165 int sctp_outq_is_empty(const struct sctp_outq *); 1167 1166 void sctp_outq_restart(struct sctp_outq *);
+3 -1
net/sctp/outqueue.c
··· 71 71 72 72 static void sctp_generate_fwdtsn(struct sctp_outq *q, __u32 sack_ctsn); 73 73 74 + static int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout); 75 + 74 76 /* Add data to the front of the queue. */ 75 77 static inline void sctp_outq_head_data(struct sctp_outq *q, 76 78 struct sctp_chunk *ch) ··· 714 712 * locking concerns must be made. Today we use the sock lock to protect 715 713 * this function. 716 714 */ 717 - int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout) 715 + static int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout) 718 716 { 719 717 struct sctp_packet *packet; 720 718 struct sctp_packet singleton;