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

sctp: fix sparse warning for sctp_init_cause_fixed

Fix the following sparse warning:
* symbol 'sctp_init_cause_fixed' was not declared. Should it be
static?

Signed-off-by: Ioan Orghici <ioanorghici@gmail.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ioan Orghici and committed by
David S. Miller
db28aafa efdfad32

+1 -1
+1 -1
net/sctp/sm_make_chunk.c
··· 132 132 * abort chunk. Differs from sctp_init_cause in that it won't oops 133 133 * if there isn't enough space in the op error chunk 134 134 */ 135 - int sctp_init_cause_fixed(struct sctp_chunk *chunk, __be16 cause_code, 135 + static int sctp_init_cause_fixed(struct sctp_chunk *chunk, __be16 cause_code, 136 136 size_t paylen) 137 137 { 138 138 sctp_errhdr_t err;