diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2008-03-27 20:54:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-27 20:54:29 -0400 |
commit | bc09dff198e67a98a82c42000006b39f6d502031 (patch) | |
tree | b171eba795f04956020cbbe73ce2cc56b58cf34b /include/net/sctp/command.h | |
parent | 419ae74ecc9494e58928a5c6652f4c072f3ca744 (diff) |
[SCTP]: Remove sctp_add_cmd_sf wrapper bloat
With a was number of callsites sctp_add_cmd_sf wrapper bloats
kernel by some amount. Due to unlikely tracking allyesconfig,
with the initial result were around ~7kB (thus caught my
attention) while a non-debug config produced only ~2.3kB effect.
I (ij) proposed first a patch to uninline it but Vlad responded
with a patch that removed the only sctp_add_cmd call which is
wrapped by sctp_add_cmd_sf (I wasn't sure if I could do that).
I did minor cleanup to Vlad's patch.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp/command.h')
-rw-r--r-- | include/net/sctp/command.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/sctp/command.h b/include/net/sctp/command.h index 10ae2da6f93b..4263af857794 100644 --- a/include/net/sctp/command.h +++ b/include/net/sctp/command.h | |||
@@ -205,12 +205,11 @@ typedef struct { | |||
205 | int sctp_init_cmd_seq(sctp_cmd_seq_t *seq); | 205 | int sctp_init_cmd_seq(sctp_cmd_seq_t *seq); |
206 | 206 | ||
207 | /* Add a command to an sctp_cmd_seq_t. | 207 | /* Add a command to an sctp_cmd_seq_t. |
208 | * Return 0 if the command sequence is full. | ||
209 | * | 208 | * |
210 | * Use the SCTP_* constructors defined by SCTP_ARG_CONSTRUCTOR() above | 209 | * Use the SCTP_* constructors defined by SCTP_ARG_CONSTRUCTOR() above |
211 | * to wrap data which goes in the obj argument. | 210 | * to wrap data which goes in the obj argument. |
212 | */ | 211 | */ |
213 | int sctp_add_cmd(sctp_cmd_seq_t *seq, sctp_verb_t verb, sctp_arg_t obj); | 212 | void sctp_add_cmd_sf(sctp_cmd_seq_t *seq, sctp_verb_t verb, sctp_arg_t obj); |
214 | 213 | ||
215 | /* Return the next command structure in an sctp_cmd_seq. | 214 | /* Return the next command structure in an sctp_cmd_seq. |
216 | * Return NULL at the end of the sequence. | 215 | * Return NULL at the end of the sequence. |