diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-08-10 22:23:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-11 13:02:43 -0400 |
commit | d38ef5ae35b0960f3219f1cf0203e19819e757c7 (patch) | |
tree | cc46c52a7c313a90444dd9b080f573f3b6bbce7d | |
parent | a05437ac5deb100f94e290ad4c5eef3e78f4b6bb (diff) |
sctp: remove the typedef sctp_dbg_objcnt_entry_t
This patch is to remove the typedef sctp_dbg_objcnt_entry_t, and
replace with struct sctp_dbg_objcnt_entry 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>
-rw-r--r-- | include/net/sctp/structs.h | 4 | ||||
-rw-r--r-- | net/sctp/objcnt.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index e171d3a3d2b4..b6d75b37f84d 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -1992,9 +1992,9 @@ struct sctp_cmsgs { | |||
1992 | }; | 1992 | }; |
1993 | 1993 | ||
1994 | /* Structure for tracking memory objects */ | 1994 | /* Structure for tracking memory objects */ |
1995 | typedef struct { | 1995 | struct sctp_dbg_objcnt_entry { |
1996 | char *label; | 1996 | char *label; |
1997 | atomic_t *counter; | 1997 | atomic_t *counter; |
1998 | } sctp_dbg_objcnt_entry_t; | 1998 | }; |
1999 | 1999 | ||
2000 | #endif /* __sctp_structs_h__ */ | 2000 | #endif /* __sctp_structs_h__ */ |
diff --git a/net/sctp/objcnt.c b/net/sctp/objcnt.c index 105ac3327b28..aeea6da81441 100644 --- a/net/sctp/objcnt.c +++ b/net/sctp/objcnt.c | |||
@@ -57,7 +57,7 @@ SCTP_DBG_OBJCNT(keys); | |||
57 | /* An array to make it easy to pretty print the debug information | 57 | /* An array to make it easy to pretty print the debug information |
58 | * to the proc fs. | 58 | * to the proc fs. |
59 | */ | 59 | */ |
60 | static sctp_dbg_objcnt_entry_t sctp_dbg_objcnt[] = { | 60 | static struct sctp_dbg_objcnt_entry sctp_dbg_objcnt[] = { |
61 | SCTP_DBG_OBJCNT_ENTRY(sock), | 61 | SCTP_DBG_OBJCNT_ENTRY(sock), |
62 | SCTP_DBG_OBJCNT_ENTRY(ep), | 62 | SCTP_DBG_OBJCNT_ENTRY(ep), |
63 | SCTP_DBG_OBJCNT_ENTRY(assoc), | 63 | SCTP_DBG_OBJCNT_ENTRY(assoc), |