summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-08-10 22:23:49 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-11 13:02:43 -0400
commitd38ef5ae35b0960f3219f1cf0203e19819e757c7 (patch)
treecc46c52a7c313a90444dd9b080f573f3b6bbce7d
parenta05437ac5deb100f94e290ad4c5eef3e78f4b6bb (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.h4
-rw-r--r--net/sctp/objcnt.c2
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 */
1995typedef struct { 1995struct 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 */
60static sctp_dbg_objcnt_entry_t sctp_dbg_objcnt[] = { 60static 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),