sctp: remove typedefs from structures part 2
Subsystems (3)
Xin Long
maintainerv2 cover sctp: remove typedefs from structures part 2
As we know, typedef is suggested not to use in kernel, even checkpatch.pl also gives warnings about it. Now sctp is using it for many structures.
All this kind of typedef's using should be removed. This patchset is the part 2 to remove it for another 11 basic structures.
Just as the part 1, No any code's logic would be changed in these patches, only cleaning up.
Note that v1->v2, nothing changed, just because net-next were closed when posting v1.
Xin Long (11):
sctp: remove the typedef sctp_ipv4addr_param_t
sctp: remove the typedef sctp_ipv6addr_param_t
sctp: remove the typedef sctp_cookie_preserve_param_t
sctp: remove the typedef sctp_hostname_param_t
sctp: remove the typedef sctp_supported_addrs_param_t
sctp: remove struct sctp_ecn_capable_param
sctp: remove the typedef sctp_adaptation_ind_param_t
sctp: remove the typedef sctp_supported_ext_param_t
sctp: remove the typedef sctp_random_param_t
sctp: remove the typedef sctp_chunks_param_t
sctp: remove the typedef sctp_hmac_algo_param_t
include/linux/sctp.h | 49 +++++++++++++++++++++------------------------- include/net/sctp/structs.h | 6 +++--- net/sctp/auth.c | 13 ++++++------ net/sctp/endpointola.c | 8 ++++---- net/sctp/ipv6.c | 2 +- net/sctp/protocol.c | 2 +- net/sctp/sm_make_chunk.c | 32 ++++++++++++------------------ net/sctp/sm_statefuns.c | 11 +++++------ 8 files changed, 55 insertions(+), 68 deletions(-)
Signature · 1 line
2.1.0
Xin Long
maintainerPATCH v2 1/11 sctp: remove the typedef sctp_ipv4addr_param_t
This patch is to remove the typedef sctp_ipv4addr_param_t, and replace with struct sctp_ipv4addr_param in the places where it's using this typedef.
--- include/linux/sctp.h | 6 +++--- net/sctp/protocol.c | 2 +- net/sctp/sm_make_chunk.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
include/linux/sctp.h +3 -3
@@ -273,10 +273,10 @@ struct sctp_init_chunk {/* Section 3.3.2.1. IPv4 Address Parameter (5) */ -typedef struct sctp_ipv4addr_param { +struct sctp_ipv4addr_param {struct sctp_paramhdr param_hdr; -struct in_addr addr; -}sctp_ipv4addr_param_t ; +struct in_addr addr; +};/* Section 3.3.2.1. IPv6 Address Parameter (6) */ typedef struct sctp_ipv6addr_param {
net/sctp/protocol.c +1 -1
@@ -292,7 +292,7 @@ static void sctp_v4_from_addr_param(union sctp_addr *addr,static int sctp_v4_to_addr_param (const union sctp_addr *addr,union sctp_addr_param *param) { -int length =sizeof (sctp_ipv4addr_param_t); +int length =sizeof (struct sctp_ipv4addr_param ); param->v4.param_hdr.type =SCTP_PARAM_IPV4_ADDRESS ; param->v4.param_hdr.length =htons (length);
net/sctp/sm_make_chunk.c +1 -1
@@ -3153,7 +3153,7 @@ bool sctp_verify_asconf(const struct sctp_association *asoc,case SCTP_PARAM_ERR_CAUSE :break ;case SCTP_PARAM_IPV4_ADDRESS : -if (length !=sizeof (sctp_ipv4addr_param_t)) +if (length !=sizeof (struct sctp_ipv4addr_param ))return false;/* ensure there is only one addr param and it's in the * beginning of addip_hdr params, or we reject it.
Signature · 1 line
2.1.0
Xin Long
maintainerPATCH v2 2/11 sctp: remove the typedef sctp_ipv6addr_param_t
This patch is to remove the typedef sctp_ipv6addr_param_t, and replace with struct sctp_ipv6addr_param in the places where it's using this typedef.
--- include/linux/sctp.h | 4 ++-- net/sctp/ipv6.c | 2 +- net/sctp/sm_make_chunk.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
include/linux/sctp.h +2 -2
@@ -279,10 +279,10 @@ struct sctp_ipv4addr_param { };/* Section 3.3.2.1. IPv6 Address Parameter (6) */ -typedef struct sctp_ipv6addr_param { +struct sctp_ipv6addr_param {struct sctp_paramhdr param_hdr;struct in6_addr addr; -}sctp_ipv6addr_param_t ; +};/* Section 3.3.2.1 Cookie Preservative (9) */ typedef struct sctp_cookie_preserve_param {
net/sctp/ipv6.c +1 -1
@@ -497,7 +497,7 @@ static void sctp_v6_from_addr_param(union sctp_addr *addr,static int sctp_v6_to_addr_param (const union sctp_addr *addr,union sctp_addr_param *param) { -int length =sizeof (sctp_ipv6addr_param_t); +int length =sizeof (struct sctp_ipv6addr_param ); param->v6.param_hdr.type =SCTP_PARAM_IPV6_ADDRESS ; param->v6.param_hdr.length =htons (length);
net/sctp/sm_make_chunk.c +1 -1
@@ -3163,7 +3163,7 @@ bool sctp_verify_asconf(const struct sctp_association *asoc, addr_param_seen = true;break ;case SCTP_PARAM_IPV6_ADDRESS : -if (length !=sizeof (sctp_ipv6addr_param_t)) +if (length !=sizeof (struct sctp_ipv6addr_param ))return false;if (param.v != addip->addip_hdr.params)return false;
Signature · 1 line
2.1.0
Xin Long
maintainerPATCH v2 3/11 sctp: remove the typedef sctp_cookie_preserve_param_t
This patch is to remove the typedef sctp_cookie_preserve_param_t, and replace with struct sctp_cookie_preserve_param in the places where it's using this typedef.
It is also to fix some indents in sctp_sf_do_5_2_6_stale().
--- include/linux/sctp.h | 6 +++--- net/sctp/sm_statefuns.c | 11 +++++------ 2 files changed, 8 insertions(+), 9 deletions(-)
include/linux/sctp.h +3 -3
@@ -285,10 +285,10 @@ struct sctp_ipv6addr_param { };/* Section 3.3.2.1 Cookie Preservative (9) */ -typedef struct sctp_cookie_preserve_param { +struct sctp_cookie_preserve_param {struct sctp_paramhdr param_hdr; -__be32 lifespan_increment; -}sctp_cookie_preserve_param_t ; +__be32 lifespan_increment; +};/* Section 3.3.2.1 Host Name Address (11) */ typedef struct sctp_hostname_param {
net/sctp/sm_statefuns.c +5 -6
@@ -2336,13 +2336,12 @@ static sctp_disposition_t sctp_sf_do_5_2_6_stale(struct net *net,void *arg, sctp_cmd_seq_t *commands) { - struct sctp_chunk *chunk = arg; -u32 stale; -sctp_cookie_preserve_param_t bht; -sctp_errhdr_t *err; -struct sctp_chunk *reply; -struct sctp_bind_addr *bp; int attempts = asoc->init_err_counter + 1; +struct sctp_chunk *chunk = arg, *reply; +struct sctp_cookie_preserve_param bht; +struct sctp_bind_addr *bp; +sctp_errhdr_t *err; +u32 stale;if (attempts > asoc->max_init_attempts) { sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR,
Signature · 1 line
2.1.0
Xin Long
maintainerPATCH v2 4/11 sctp: remove the typedef sctp_hostname_param_t
Remove this typedef, there is even no places using it.
--- include/linux/sctp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/sctp.h +2 -2
@@ -291,10 +291,10 @@ struct sctp_cookie_preserve_param { };/* Section 3.3.2.1 Host Name Address (11) */ -typedef struct sctp_hostname_param { +struct sctp_hostname_param {struct sctp_paramhdr param_hdr;uint8_t hostname[0 ]; -}sctp_hostname_param_t ; +};/* Section 3.3.2.1 Supported Address Types (12) */ typedef struct sctp_supported_addrs_param {
Signature · 1 line
2.1.0
Xin Long
maintainerPATCH v2 5/11 sctp: remove the typedef sctp_supported_addrs_param_t
This patch is to remove the typedef sctp_supported_addrs_param_t, and replace with struct sctp_supported_addrs_param in the places where it's using this typedef.
--- include/linux/sctp.h | 4 ++-- net/sctp/sm_make_chunk.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
include/linux/sctp.h +2 -2
@@ -297,10 +297,10 @@ struct sctp_hostname_param { };/* Section 3.3.2.1 Supported Address Types (12) */ -typedef struct sctp_supported_addrs_param { +struct sctp_supported_addrs_param {struct sctp_paramhdr param_hdr;__be16 types[0 ]; -}sctp_supported_addrs_param_t ; +};/* Appendix A. ECN Capable (32768) */ typedef struct sctp_ecn_capable_param {
net/sctp/sm_make_chunk.c +1 -1
@@ -223,7 +223,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,struct sctp_chunk *retval =NULL ;int num_types, addrs_len =0 ;struct sctp_sock *sp; -sctp_supported_addrs_param_t sat; +struct sctp_supported_addrs_param sat;__be16 types[2 ];sctp_adaptation_ind_param_t aiparam;sctp_supported_ext_param_t ext_param;
Signature · 1 line
2.1.0
Xin Long
maintainerPATCH v2 6/11 sctp: remove struct sctp_ecn_capable_param
Remove it, there is even no places using it.
--- include/linux/sctp.h | 5 ----- 1 file changed, 5 deletions(-)
include/linux/sctp.h +0 -5
@@ -302,11 +302,6 @@ struct sctp_supported_addrs_param {__be16 types[0 ]; }; -/* Appendix A. ECN Capable (32768) */ -typedef struct sctp_ecn_capable_param { -struct sctp_paramhdr param_hdr; -}sctp_ecn_capable_param_t ; -/* ADDIP Section 3.2.6 Adaptation Layer Indication */ typedef struct sctp_adaptation_ind_param { struct sctp_paramhdr param_hdr;
Signature · 1 line
2.1.0
Xin Long
maintainerPATCH v2 7/11 sctp: remove the typedef sctp_adaptation_ind_param_t
This patch is to remove the typedef sctp_adaptation_ind_param_t, and replace with struct sctp_adaptation_ind_param in the places where it's using this typedef.
--- include/linux/sctp.h | 4 ++-- net/sctp/sm_make_chunk.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
include/linux/sctp.h +2 -2
@@ -303,10 +303,10 @@ struct sctp_supported_addrs_param { };/* ADDIP Section 3.2.6 Adaptation Layer Indication */ -typedef struct sctp_adaptation_ind_param { +struct sctp_adaptation_ind_param {struct sctp_paramhdr param_hdr;__be32 adaptation_ind; -}sctp_adaptation_ind_param_t ; +};/* ADDIP Section 4.2.7 Supported Extensions Parameter */ typedef struct sctp_supported_ext_param {
net/sctp/sm_make_chunk.c +2 -2
@@ -225,7 +225,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,struct sctp_sock *sp;struct sctp_supported_addrs_param sat;__be16 types[2 ]; -sctp_adaptation_ind_param_t aiparam; +struct sctp_adaptation_ind_param aiparam;sctp_supported_ext_param_t ext_param;int num_ext =0 ;__u8 extensions[3 ];
@@ -393,7 +393,7 @@ struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc,sctp_cookie_param_t *cookie;int cookie_len;size_t chunksize; -sctp_adaptation_ind_param_t aiparam; +struct sctp_adaptation_ind_param aiparam;sctp_supported_ext_param_t ext_param;int num_ext =0 ;__u8 extensions[3 ];
Signature · 1 line
2.1.0
Xin Long
maintainerPATCH v2 8/11 sctp: remove the typedef sctp_supported_ext_param_t
This patch is to remove the typedef sctp_supported_ext_param_t, and replace with struct sctp_supported_ext_param in the places where it's using this typedef.
It is also to use sizeof(variable) instead of sizeof(type).
--- include/linux/sctp.h | 4 ++-- net/sctp/sm_make_chunk.c | 22 ++++++++-------------- 2 files changed, 10 insertions(+), 16 deletions(-)
include/linux/sctp.h +2 -2
@@ -309,10 +309,10 @@ struct sctp_adaptation_ind_param { };/* ADDIP Section 4.2.7 Supported Extensions Parameter */ -typedef struct sctp_supported_ext_param { +struct sctp_supported_ext_param {struct sctp_paramhdr param_hdr;__u8 chunks[0 ]; -}sctp_supported_ext_param_t ; +};/* AUTH Section 3.1 Random */ typedef struct sctp_random_param {
net/sctp/sm_make_chunk.c +8 -12
@@ -226,7 +226,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,struct sctp_supported_addrs_param sat;__be16 types[2 ];struct sctp_adaptation_ind_param aiparam; -sctp_supported_ext_param_t ext_param; +struct sctp_supported_ext_param ext_param;int num_ext =0 ;__u8 extensions[3 ]; struct sctp_paramhdr *auth_chunks = NULL,
@@ -305,8 +305,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,/* If we have any extensions to report, account for that */ if (num_ext) - chunksize +=SCTP_PAD4 (sizeof (sctp_supported_ext_param_t) + - num_ext); + chunksize +=SCTP_PAD4 (sizeof (ext_param) + num_ext);/* RFC 2960 3.3.2 Initiation (INIT) (1) *
@@ -348,10 +347,8 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,*/ if (num_ext) { ext_param.param_hdr.type =SCTP_PARAM_SUPPORTED_EXT ; - ext_param.param_hdr.length -htons (sizeof (sctp_supported_ext_param_t) + num_ext); -sctp_addto_chunk (retval,sizeof (sctp_supported_ext_param_t), - &ext_param); + ext_param.param_hdr.length =htons (sizeof (ext_param) + num_ext); +sctp_addto_chunk (retval,sizeof (ext_param), &ext_param);sctp_addto_param (retval, num_ext, extensions); }
@@ -394,7 +391,7 @@ struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc,int cookie_len;size_t chunksize;struct sctp_adaptation_ind_param aiparam; -sctp_supported_ext_param_t ext_param; +struct sctp_supported_ext_param ext_param;int num_ext =0 ;__u8 extensions[3 ]; struct sctp_paramhdr *auth_chunks = NULL,
@@ -468,8 +465,7 @@ struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc, }if (num_ext) - chunksize +=SCTP_PAD4 (sizeof (sctp_supported_ext_param_t) + - num_ext); + chunksize +=SCTP_PAD4 (sizeof (ext_param) + num_ext);/* Now allocate and fill out the chunk. */ retval =sctp_make_control (asoc,SCTP_CID_INIT_ACK ,0 , chunksize, gfp);
@@ -495,10 +491,8 @@ struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc,sctp_addto_chunk (retval,sizeof (ecap_param), &ecap_param);if (num_ext) { ext_param.param_hdr.type =SCTP_PARAM_SUPPORTED_EXT ; - ext_param.param_hdr.length -htons (sizeof (sctp_supported_ext_param_t) + num_ext); -sctp_addto_chunk (retval,sizeof (sctp_supported_ext_param_t), - &ext_param); + ext_param.param_hdr.length =htons (sizeof (ext_param) + num_ext); +sctp_addto_chunk (retval,sizeof (ext_param), &ext_param);sctp_addto_param (retval, num_ext, extensions); }if (asoc->peer.prsctp_capable)
Signature · 1 line
2.1.0
Xin Long
maintainerPATCH v2 9/11 sctp: remove the typedef sctp_random_param_t
This patch is to remove the typedef sctp_random_param_t, and replace with struct sctp_random_param in the places where it's using this typedef.
--- include/linux/sctp.h | 4 ++-- include/net/sctp/structs.h | 2 +- net/sctp/auth.c | 9 ++++----- 3 files changed, 7 insertions(+), 8 deletions(-)
include/linux/sctp.h +2 -2
@@ -315,10 +315,10 @@ struct sctp_supported_ext_param { };/* AUTH Section 3.1 Random */ -typedef struct sctp_random_param { +struct sctp_random_param {struct sctp_paramhdr param_hdr;__u8 random_val[0 ]; -}sctp_random_param_t ; +};/* AUTH Section 3.2 Chunk List */ typedef struct sctp_chunks_param {
include/net/sctp/structs.h +1 -1
@@ -1556,7 +1556,7 @@ struct sctp_association {* and authenticated chunk list. All that is part of the * cookie and these are just pointers to those locations */ -sctp_random_param_t *peer_random; +struct sctp_random_param *peer_random;sctp_chunks_param_t *peer_chunks;sctp_hmac_algo_param_t *peer_hmacs; } peer;
net/sctp/auth.c +4 -5
@@ -185,7 +185,7 @@ static int sctp_auth_compare_vectors(struct sctp_auth_bytes *vector1,* are called the two key vectors. */ static struct sctp_auth_bytes *sctp_auth_make_key_vector ( -sctp_random_param_t *random, +struct sctp_random_param *random,sctp_chunks_param_t *chunks,sctp_hmac_algo_param_t *hmacs,gfp_t gfp)
@@ -226,10 +226,9 @@ static struct sctp_auth_bytes *sctp_auth_make_local_vector( gfp_t gfp) {return sctp_auth_make_key_vector ( - (sctp_random_param_t *)asoc->c.auth_random, - (sctp_chunks_param_t *)asoc->c.auth_chunks, - (sctp_hmac_algo_param_t *)asoc->c.auth_hmacs, - gfp); + (struct sctp_random_param *)asoc->c.auth_random, + (sctp_chunks_param_t *)asoc->c.auth_chunks, + (sctp_hmac_algo_param_t *)asoc->c.auth_hmacs, gfp); }/* Make a key vector based on peer's parameters */
Signature · 1 line
2.1.0
Xin Long
maintainerPATCH v2 10/11 sctp: remove the typedef sctp_chunks_param_t
This patch is to remove the typedef sctp_chunks_param_t, and replace with struct sctp_chunks_param in the places where it's using this typedef.
It is also to use sizeof(variable) instead of sizeof(type).
--- include/linux/sctp.h | 4 ++-- include/net/sctp/structs.h | 2 +- net/sctp/auth.c | 4 ++-- net/sctp/endpointola.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-)
include/linux/sctp.h +2 -2
@@ -321,10 +321,10 @@ struct sctp_random_param { };/* AUTH Section 3.2 Chunk List */ -typedef struct sctp_chunks_param { +struct sctp_chunks_param {struct sctp_paramhdr param_hdr;__u8 chunks[0 ]; -}sctp_chunks_param_t ; +};/* AUTH Section 3.3 HMAC Algorithm */ typedef struct sctp_hmac_algo_param {
include/net/sctp/structs.h +1 -1
@@ -1557,7 +1557,7 @@ struct sctp_association {* cookie and these are just pointers to those locations */ struct sctp_random_param *peer_random; -sctp_chunks_param_t *peer_chunks; +struct sctp_chunks_param *peer_chunks;sctp_hmac_algo_param_t *peer_hmacs; } peer;
net/sctp/auth.c +2 -2
@@ -186,7 +186,7 @@ static int sctp_auth_compare_vectors(struct sctp_auth_bytes *vector1,*/ static struct sctp_auth_bytes *sctp_auth_make_key_vector (struct sctp_random_param *random, -sctp_chunks_param_t *chunks, +struct sctp_chunks_param *chunks,sctp_hmac_algo_param_t *hmacs,gfp_t gfp) {
@@ -227,7 +227,7 @@ static struct sctp_auth_bytes *sctp_auth_make_local_vector( {return sctp_auth_make_key_vector ( (struct sctp_random_param *)asoc->c.auth_random, - (sctp_chunks_param_t *)asoc->c.auth_chunks, + (struct sctp_chunks_param *)asoc->c.auth_chunks, (sctp_hmac_algo_param_t *)asoc->c.auth_hmacs, gfp); }
net/sctp/endpointola.c +2 -2
@@ -78,8 +78,8 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep,if (!auth_hmacs) goto nomem; - auth_chunks =kzalloc (sizeof (sctp_chunks_param_t) + -SCTP_NUM_CHUNK_TYPES , gfp); + auth_chunks =kzalloc (sizeof (*auth_chunks) + +SCTP_NUM_CHUNK_TYPES , gfp);if (!auth_chunks) goto nomem;
Signature · 1 line
2.1.0
Xin Long
maintainerPATCH v2 11/11 sctp: remove the typedef sctp_hmac_algo_param_t
This patch is to remove the typedef sctp_hmac_algo_param_t, and replace with struct sctp_hmac_algo_param in the places where it's using this typedef.
It is also to use sizeof(variable) instead of sizeof(type).
--- include/linux/sctp.h | 4 ++-- include/net/sctp/structs.h | 2 +- net/sctp/auth.c | 4 ++-- net/sctp/endpointola.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-)
include/linux/sctp.h +2 -2
@@ -327,10 +327,10 @@ struct sctp_chunks_param { };/* AUTH Section 3.3 HMAC Algorithm */ -typedef struct sctp_hmac_algo_param { +struct sctp_hmac_algo_param {struct sctp_paramhdr param_hdr;__be16 hmac_ids[0 ]; -}sctp_hmac_algo_param_t ; +};/* RFC 2960. Section 3.3.3 Initiation Acknowledgement (INIT ACK) (2): * The INIT ACK chunk is used to acknowledge the initiation of an SCTP
include/net/sctp/structs.h +1 -1
@@ -1558,7 +1558,7 @@ struct sctp_association {*/ struct sctp_random_param *peer_random;struct sctp_chunks_param *peer_chunks; -sctp_hmac_algo_param_t *peer_hmacs; +struct sctp_hmac_algo_param *peer_hmacs; } peer;/* State : A state variable indicating what state the
net/sctp/auth.c +2 -2
@@ -187,7 +187,7 @@ static int sctp_auth_compare_vectors(struct sctp_auth_bytes *vector1,static struct sctp_auth_bytes *sctp_auth_make_key_vector (struct sctp_random_param *random,struct sctp_chunks_param *chunks, -sctp_hmac_algo_param_t *hmacs, +struct sctp_hmac_algo_param *hmacs,gfp_t gfp) {struct sctp_auth_bytes *new;
@@ -228,7 +228,7 @@ static struct sctp_auth_bytes *sctp_auth_make_local_vector(return sctp_auth_make_key_vector ( (struct sctp_random_param *)asoc->c.auth_random, (struct sctp_chunks_param *)asoc->c.auth_chunks, - (sctp_hmac_algo_param_t *)asoc->c.auth_hmacs, gfp); + (struct sctp_hmac_algo_param *)asoc->c.auth_hmacs, gfp); }/* Make a key vector based on peer's parameters */
net/sctp/endpointola.c +2 -2
@@ -73,8 +73,8 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep,* variables. There are arrays that we encode directly * into parameters to make the rest of the operations easier. */ - auth_hmacs =kzalloc (sizeof (sctp_hmac_algo_param_t) + -sizeof (__u16) *SCTP_AUTH_NUM_HMACS , gfp); + auth_hmacs =kzalloc (sizeof (*auth_hmacs) + +sizeof (__u16) *SCTP_AUTH_NUM_HMACS , gfp);if (!auth_hmacs) goto nomem;
Signature · 1 line
2.1.0
David Miller
maintainerFrom: Xin Long <[email protected]>
Date: Mon, 17 Jul 2017 11:29:48 +0800
Quoted 11 lines
As we know, typedef is suggested not to use in kernel, even checkpatch.pl also gives warnings about it. Now sctp is using it for many structures.
All this kind of typedef's using should be removed. This patchset is the part 2 to remove it for another 11 basic structures.
Just as the part 1, No any code's logic would be changed in these patches, only cleaning up.
Note that
v1->v2, nothing changed, just because net-next were closed when posting v1.
Series applied, thank you.