mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02:00
sctp: delete the nested flexible array params
This patch deletes the flexible-array params[] from the structure sctp_inithdr, sctp_addiphdr and sctp_reconf_chunk to avoid some sparse warnings: # make C=2 CF="-Wflexible-array-nested" M=./net/sctp/ net/sctp/input.c: note: in included file (through include/net/sctp/structs.h, include/net/sctp/sctp.h): ./include/linux/sctp.h:278:29: warning: nested flexible array ./include/linux/sctp.h:675:30: warning: nested flexible array This warning is reported if a structure having a flexible array member is included by other structures. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2f3a247c39
commit
add7370a39
@@ -270,7 +270,7 @@ struct sctp_inithdr {
|
||||
__be16 num_outbound_streams;
|
||||
__be16 num_inbound_streams;
|
||||
__be32 initial_tsn;
|
||||
__u8 params[];
|
||||
/* __u8 params[]; */
|
||||
};
|
||||
|
||||
struct sctp_init_chunk {
|
||||
@@ -667,7 +667,7 @@ struct sctp_addip_param {
|
||||
|
||||
struct sctp_addiphdr {
|
||||
__be32 serial;
|
||||
__u8 params[];
|
||||
/* __u8 params[]; */
|
||||
};
|
||||
|
||||
struct sctp_addip_chunk {
|
||||
@@ -742,7 +742,7 @@ struct sctp_infox {
|
||||
|
||||
struct sctp_reconf_chunk {
|
||||
struct sctp_chunkhdr chunk_hdr;
|
||||
__u8 params[];
|
||||
/* __u8 params[]; */
|
||||
};
|
||||
|
||||
struct sctp_strreset_outreq {
|
||||
|
Reference in New Issue
Block a user