]> git.baikalelectronics.ru Git - kernel.git/commitdiff
sctp: remove the typedef sctp_transport_cmd_t
authorXin Long <lucien.xin@gmail.com>
Sat, 5 Aug 2017 11:59:55 +0000 (19:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 04:33:41 +0000 (21:33 -0700)
This patch is to remove the typedef sctp_transport_cmd_t, and
replace with enum sctp_transport_cmd 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>
include/net/sctp/constants.h
include/net/sctp/structs.h
net/sctp/associola.c

index 0503bb70e5d940b8cca038d8c73ca7db1e4c82a2..8ce6d3263e411a70a9a8b9e1e5f56d36be3321e3 100644 (file)
@@ -320,11 +320,11 @@ typedef enum {
 } sctp_xmit_t;
 
 /* These are the commands for manipulating transports.  */
-typedef enum {
+enum sctp_transport_cmd {
        SCTP_TRANSPORT_UP,
        SCTP_TRANSPORT_DOWN,
        SCTP_TRANSPORT_PF,
-} sctp_transport_cmd_t;
+};
 
 /* These are the address scopes defined mainly for IPv4 addresses
  * based on draft of SCTP IPv4 scoping <draft-stewart-tsvwg-sctp-ipv4-00.txt>.
index d771d418481f32db1067af6b45fbe4f933caf35e..d098d1c4ed74d92e533d8a97afafd818b5eb4a55 100644 (file)
@@ -1947,9 +1947,10 @@ void sctp_assoc_del_peer(struct sctp_association *asoc,
                         const union sctp_addr *addr);
 void sctp_assoc_rm_peer(struct sctp_association *asoc,
                         struct sctp_transport *peer);
-void sctp_assoc_control_transport(struct sctp_association *,
-                                 struct sctp_transport *,
-                                 sctp_transport_cmd_t, sctp_sn_error_t);
+void sctp_assoc_control_transport(struct sctp_association *asoc,
+                                 struct sctp_transport *transport,
+                                 enum sctp_transport_cmd command,
+                                 sctp_sn_error_t error);
 struct sctp_transport *sctp_assoc_lookup_tsn(struct sctp_association *, __u32);
 struct sctp_transport *sctp_assoc_is_match(struct sctp_association *,
                                           struct net *,
index 4c1f1bb2aaad1774a4b00d478985f4776ed59343..b53efed8ff71425bab40a82e47c33b2c5e562375 100644 (file)
@@ -796,7 +796,7 @@ void sctp_assoc_del_nonprimary_peers(struct sctp_association *asoc,
  */
 void sctp_assoc_control_transport(struct sctp_association *asoc,
                                  struct sctp_transport *transport,
-                                 sctp_transport_cmd_t command,
+                                 enum sctp_transport_cmd command,
                                  sctp_sn_error_t error)
 {
        struct sctp_ulpevent *event;