git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
net
/
sctp
/
chunk.c
diff --git
a/net/sctp/chunk.c
b/net/sctp/chunk.c
index
67f3afd
..
0c2ab78
100644
(file)
--- a/
net/sctp/chunk.c
+++ b/
net/sctp/chunk.c
@@
-51,7
+51,7
@@
*/
/* Initialize datamsg from memory. */
*/
/* Initialize datamsg from memory. */
-void sctp_datamsg_init(struct sctp_datamsg *msg)
+
static
void sctp_datamsg_init(struct sctp_datamsg *msg)
{
atomic_set(&msg->refcnt, 1);
msg->send_failed = 0;
{
atomic_set(&msg->refcnt, 1);
msg->send_failed = 0;
@@
-62,7
+62,7
@@
void sctp_datamsg_init(struct sctp_datamsg *msg)
}
/* Allocate and initialize datamsg. */
}
/* Allocate and initialize datamsg. */
-struct sctp_datamsg *sctp_datamsg_new(int gfp)
+
SCTP_STATIC
struct sctp_datamsg *sctp_datamsg_new(int gfp)
{
struct sctp_datamsg *msg;
msg = kmalloc(sizeof(struct sctp_datamsg), gfp);
{
struct sctp_datamsg *msg;
msg = kmalloc(sizeof(struct sctp_datamsg), gfp);
@@
-77,7
+77,7
@@
static void sctp_datamsg_destroy(struct sctp_datamsg *msg)
{
struct list_head *pos, *temp;
struct sctp_chunk *chunk;
{
struct list_head *pos, *temp;
struct sctp_chunk *chunk;
- struct sctp_
opt
*sp;
+ struct sctp_
sock
*sp;
struct sctp_ulpevent *ev;
struct sctp_association *asoc = NULL;
int error = 0, notify;
struct sctp_ulpevent *ev;
struct sctp_association *asoc = NULL;
int error = 0, notify;
@@
-124,7
+124,7
@@
static void sctp_datamsg_destroy(struct sctp_datamsg *msg)
}
/* Hold a reference. */
}
/* Hold a reference. */
-void sctp_datamsg_hold(struct sctp_datamsg *msg)
+
static
void sctp_datamsg_hold(struct sctp_datamsg *msg)
{
atomic_inc(&msg->refcnt);
}
{
atomic_inc(&msg->refcnt);
}
@@
-151,7
+151,7
@@
void sctp_datamsg_track(struct sctp_chunk *chunk)
}
/* Assign a chunk to this datamsg. */
}
/* Assign a chunk to this datamsg. */
-void sctp_datamsg_assign(struct sctp_datamsg *msg, struct sctp_chunk *chunk)
+
static
void sctp_datamsg_assign(struct sctp_datamsg *msg, struct sctp_chunk *chunk)
{
sctp_datamsg_hold(msg);
chunk->msg = msg;
{
sctp_datamsg_hold(msg);
chunk->msg = msg;
@@
-215,7
+215,7
@@
struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc,
offset = 0;
if ((whole > 1) || (whole && over))
offset = 0;
if ((whole > 1) || (whole && over))
- SCTP_INC_STATS_USER(S
ctpFragUsrMsgs
);
+ SCTP_INC_STATS_USER(S
CTP_MIB_FRAGUSRMSGS
);
/* Create chunks for all the full sized DATA chunks. */
for (i=0, len=first_len; i < whole; i++) {
/* Create chunks for all the full sized DATA chunks. */
for (i=0, len=first_len; i < whole; i++) {