aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/debug.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-08-05 08:00:04 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-07 00:33:42 -0400
commitbfc6f8270fefb323662d1d7713f940149f27b7f1 (patch)
tree3236aad70ec3c97f83d6c70aa5688fc0517d564b /net/sctp/debug.c
parent61f0eb072294a148f707335d4d7f858b2af73770 (diff)
sctp: remove the typedef sctp_subtype_t
This patch is to remove the typedef sctp_subtype_t, and replace with union sctp_subtype in the places where it's using this typedef. Note that it doesn't fix many indents although it should, as sctp_disposition_t's removal would mess them up again. So better to fix them when removing sctp_disposition_t in later patch. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/debug.c')
-rw-r--r--net/sctp/debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sctp/debug.c b/net/sctp/debug.c
index 2e47eb2f05cb..3f619fdcbf0a 100644
--- a/net/sctp/debug.c
+++ b/net/sctp/debug.c
@@ -60,7 +60,7 @@ static const char *const sctp_cid_tbl[SCTP_NUM_BASE_CHUNK_TYPES] = {
60}; 60};
61 61
62/* Lookup "chunk type" debug name. */ 62/* Lookup "chunk type" debug name. */
63const char *sctp_cname(const sctp_subtype_t cid) 63const char *sctp_cname(const union sctp_subtype cid)
64{ 64{
65 if (cid.chunk <= SCTP_CID_BASE_MAX) 65 if (cid.chunk <= SCTP_CID_BASE_MAX)
66 return sctp_cid_tbl[cid.chunk]; 66 return sctp_cid_tbl[cid.chunk];
@@ -130,7 +130,7 @@ static const char *const sctp_primitive_tbl[SCTP_NUM_PRIMITIVE_TYPES] = {
130}; 130};
131 131
132/* Lookup primitive debug name. */ 132/* Lookup primitive debug name. */
133const char *sctp_pname(const sctp_subtype_t id) 133const char *sctp_pname(const union sctp_subtype id)
134{ 134{
135 if (id.primitive <= SCTP_EVENT_PRIMITIVE_MAX) 135 if (id.primitive <= SCTP_EVENT_PRIMITIVE_MAX)
136 return sctp_primitive_tbl[id.primitive]; 136 return sctp_primitive_tbl[id.primitive];
@@ -143,7 +143,7 @@ static const char *const sctp_other_tbl[] = {
143}; 143};
144 144
145/* Lookup "other" debug name. */ 145/* Lookup "other" debug name. */
146const char *sctp_oname(const sctp_subtype_t id) 146const char *sctp_oname(const union sctp_subtype id)
147{ 147{
148 if (id.other <= SCTP_EVENT_OTHER_MAX) 148 if (id.other <= SCTP_EVENT_OTHER_MAX)
149 return sctp_other_tbl[id.other]; 149 return sctp_other_tbl[id.other];
@@ -165,7 +165,7 @@ static const char *const sctp_timer_tbl[] = {
165}; 165};
166 166
167/* Lookup timer debug name. */ 167/* Lookup timer debug name. */
168const char *sctp_tname(const sctp_subtype_t id) 168const char *sctp_tname(const union sctp_subtype id)
169{ 169{
170 BUILD_BUG_ON(SCTP_EVENT_TIMEOUT_MAX + 1 != ARRAY_SIZE(sctp_timer_tbl)); 170 BUILD_BUG_ON(SCTP_EVENT_TIMEOUT_MAX + 1 != ARRAY_SIZE(sctp_timer_tbl));
171 171