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

sctp: move global declaration to header file.

sctp_chunk_cachep & sctp_bucket_cachep is used module global, so move it
to a header file.

Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>

authored by

sebastian@breakpoint.cc and committed by
Vlad Yasevich
0a5fcb9c 04675210

+10 -4
+10
include/net/sctp/sctp.h
··· 190 190 191 191 192 192 /* 193 + * Module global variables 194 + */ 195 + 196 + /* 197 + * sctp/protocol.c 198 + */ 199 + extern struct kmem_cache *sctp_chunk_cachep __read_mostly; 200 + extern struct kmem_cache *sctp_bucket_cachep __read_mostly; 201 + 202 + /* 193 203 * Section: Macros, externs, and inlines 194 204 */ 195 205
-2
net/sctp/sm_make_chunk.c
··· 65 65 #include <net/sctp/sctp.h> 66 66 #include <net/sctp/sm.h> 67 67 68 - extern struct kmem_cache *sctp_chunk_cachep; 69 - 70 68 SCTP_STATIC 71 69 struct sctp_chunk *sctp_make_chunk(const struct sctp_association *asoc, 72 70 __u8 type, __u8 flags, int paylen);
-2
net/sctp/socket.c
··· 107 107 struct sctp_association *, sctp_socket_type_t); 108 108 static char *sctp_hmac_alg = SCTP_COOKIE_HMAC_ALG; 109 109 110 - extern struct kmem_cache *sctp_bucket_cachep; 111 - 112 110 /* Get the sndbuf space available at the time on the association. */ 113 111 static inline int sctp_wspace(struct sctp_association *asoc) 114 112 {