sctp: remove the typedef sctp_dbg_objcnt_entry_t
authorXin Long <lucien.xin@gmail.com>
Fri, 11 Aug 2017 02:23:49 +0000 (10:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 17:02:43 +0000 (10:02 -0700)
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>
include/net/sctp/structs.h
net/sctp/objcnt.c

index e171d3a3d2b4cfceea005be6a7400baad24138ed..b6d75b37f84dd52e87b82effd87da4273475b7ec 100644 (file)
@@ -1992,9 +1992,9 @@ struct sctp_cmsgs {
 };
 
 /* Structure for tracking memory objects */
-typedef struct {
+struct sctp_dbg_objcnt_entry {
        char *label;
        atomic_t *counter;
-} sctp_dbg_objcnt_entry_t;
+};
 
 #endif /* __sctp_structs_h__ */
index 105ac3327b289cbb88494c116a3a3ffa32e4b60b..aeea6da814417c4541ec95f0272aa7587a4b3ecd 100644 (file)
@@ -57,7 +57,7 @@ SCTP_DBG_OBJCNT(keys);
 /* An array to make it easy to pretty print the debug information
  * to the proc fs.
  */
-static sctp_dbg_objcnt_entry_t sctp_dbg_objcnt[] = {
+static struct sctp_dbg_objcnt_entry sctp_dbg_objcnt[] = {
        SCTP_DBG_OBJCNT_ENTRY(sock),
        SCTP_DBG_OBJCNT_ENTRY(ep),
        SCTP_DBG_OBJCNT_ENTRY(assoc),