projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efdfad3
)
sctp: fix sparse warning for sctp_init_cause_fixed
author
Ioan Orghici
<
[email protected]
>
Fri, 13 Jul 2012 07:16:37 +0000
(07:16 +0000)
committer
David S. Miller
<
[email protected]
>
Tue, 17 Jul 2012 06:23:52 +0000
(23:23 -0700)
Fix the following sparse warning:
* symbol 'sctp_init_cause_fixed' was not declared. Should it be
static?
Signed-off-by: Ioan Orghici <
[email protected]
>
Acked-by: Vlad Yasevich <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sctp/sm_make_chunk.c
patch
|
blob
|
history
diff --git
a/net/sctp/sm_make_chunk.c
b/net/sctp/sm_make_chunk.c
index b6de71efb140c538a66e0a7901df2b4402a85bf4..479a70ef6ff8abe2a59a16ddc672f6638c7b3369 100644
(file)
--- a/
net/sctp/sm_make_chunk.c
+++ b/
net/sctp/sm_make_chunk.c
@@
-132,7
+132,7
@@
void sctp_init_cause(struct sctp_chunk *chunk, __be16 cause_code,
* abort chunk. Differs from sctp_init_cause in that it won't oops
* if there isn't enough space in the op error chunk
*/
-int sctp_init_cause_fixed(struct sctp_chunk *chunk, __be16 cause_code,
+
static
int sctp_init_cause_fixed(struct sctp_chunk *chunk, __be16 cause_code,
size_t paylen)
{
sctp_errhdr_t err;