aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_sideeffect.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-08-05 07:59:59 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-07 00:33:42 -0400
commit5210601945f5aedaf2d7f13a88436e27a39c6a8a (patch)
tree0b196af33c9451344db77f832dbc4d26188e10e5 /net/sctp/sm_sideeffect.c
parent4785c7ae1848244da3435ba5269f6288c15975c7 (diff)
sctp: remove the typedef sctp_state_t
This patch is to remove the typedef sctp_state_t, and replace with enum sctp_state in the places where it's using this typedef. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_sideeffect.c')
-rw-r--r--net/sctp/sm_sideeffect.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c
index 5dda8c42b5f6..b77a81aa907b 100644
--- a/net/sctp/sm_sideeffect.c
+++ b/net/sctp/sm_sideeffect.c
@@ -53,7 +53,7 @@
53 53
54static int sctp_cmd_interpreter(sctp_event_t event_type, 54static int sctp_cmd_interpreter(sctp_event_t event_type,
55 sctp_subtype_t subtype, 55 sctp_subtype_t subtype,
56 sctp_state_t state, 56 enum sctp_state state,
57 struct sctp_endpoint *ep, 57 struct sctp_endpoint *ep,
58 struct sctp_association *asoc, 58 struct sctp_association *asoc,
59 void *event_arg, 59 void *event_arg,
@@ -61,7 +61,7 @@ static int sctp_cmd_interpreter(sctp_event_t event_type,
61 sctp_cmd_seq_t *commands, 61 sctp_cmd_seq_t *commands,
62 gfp_t gfp); 62 gfp_t gfp);
63static int sctp_side_effects(sctp_event_t event_type, sctp_subtype_t subtype, 63static int sctp_side_effects(sctp_event_t event_type, sctp_subtype_t subtype,
64 sctp_state_t state, 64 enum sctp_state state,
65 struct sctp_endpoint *ep, 65 struct sctp_endpoint *ep,
66 struct sctp_association **asoc, 66 struct sctp_association **asoc,
67 void *event_arg, 67 void *event_arg,
@@ -843,7 +843,7 @@ static void sctp_cmd_assoc_update(sctp_cmd_seq_t *cmds,
843/* Helper function to change the state of an association. */ 843/* Helper function to change the state of an association. */
844static void sctp_cmd_new_state(sctp_cmd_seq_t *cmds, 844static void sctp_cmd_new_state(sctp_cmd_seq_t *cmds,
845 struct sctp_association *asoc, 845 struct sctp_association *asoc,
846 sctp_state_t state) 846 enum sctp_state state)
847{ 847{
848 struct sock *sk = asoc->base.sk; 848 struct sock *sk = asoc->base.sk;
849 849
@@ -1140,7 +1140,7 @@ static void sctp_cmd_send_asconf(struct sctp_association *asoc)
1140 * good place to start. 1140 * good place to start.
1141 */ 1141 */
1142int sctp_do_sm(struct net *net, sctp_event_t event_type, sctp_subtype_t subtype, 1142int sctp_do_sm(struct net *net, sctp_event_t event_type, sctp_subtype_t subtype,
1143 sctp_state_t state, 1143 enum sctp_state state,
1144 struct sctp_endpoint *ep, 1144 struct sctp_endpoint *ep,
1145 struct sctp_association *asoc, 1145 struct sctp_association *asoc,
1146 void *event_arg, 1146 void *event_arg,
@@ -1179,7 +1179,7 @@ int sctp_do_sm(struct net *net, sctp_event_t event_type, sctp_subtype_t subtype,
1179 * This the master state function side effect processing function. 1179 * This the master state function side effect processing function.
1180 *****************************************************************/ 1180 *****************************************************************/
1181static int sctp_side_effects(sctp_event_t event_type, sctp_subtype_t subtype, 1181static int sctp_side_effects(sctp_event_t event_type, sctp_subtype_t subtype,
1182 sctp_state_t state, 1182 enum sctp_state state,
1183 struct sctp_endpoint *ep, 1183 struct sctp_endpoint *ep,
1184 struct sctp_association **asoc, 1184 struct sctp_association **asoc,
1185 void *event_arg, 1185 void *event_arg,
@@ -1265,7 +1265,7 @@ bail:
1265/* This is the side-effect interpreter. */ 1265/* This is the side-effect interpreter. */
1266static int sctp_cmd_interpreter(sctp_event_t event_type, 1266static int sctp_cmd_interpreter(sctp_event_t event_type,
1267 sctp_subtype_t subtype, 1267 sctp_subtype_t subtype,
1268 sctp_state_t state, 1268 enum sctp_state state,
1269 struct sctp_endpoint *ep, 1269 struct sctp_endpoint *ep,
1270 struct sctp_association *asoc, 1270 struct sctp_association *asoc,
1271 void *event_arg, 1271 void *event_arg,