mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-24 11:25:43 +00:00
sctp: delete the nested flexible array payload
This patch deletes the flexible-array payload[] from the structure sctp_datahdr to avoid some sparse warnings: # make C=2 CF="-Wflexible-array-nested" M=./net/sctp/ net/sctp/socket.c: note: in included file (through include/net/sctp/structs.h, include/net/sctp/sctp.h): ./include/linux/sctp.h:230:29: warning: nested flexible array This member is not even used anywhere. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2ab399a931
commit
dbda0fba7a
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ struct sctp_datahdr {
|
|||
__be16 stream;
|
||||
__be16 ssn;
|
||||
__u32 ppid;
|
||||
__u8 payload[];
|
||||
/* __u8 payload[]; */
|
||||
};
|
||||
|
||||
struct sctp_data_chunk {
|
||||
|
|
Loading…
Reference in a new issue