Skip to content

Commit dbda0fb

Browse files
lxindavem330
authored andcommitted
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>
1 parent 2ab399a commit dbda0fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/sctp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ struct sctp_datahdr {
222222
__be16 stream;
223223
__be16 ssn;
224224
__u32 ppid;
225-
__u8 payload[];
225+
/* __u8 payload[]; */
226226
};
227227

228228
struct sctp_data_chunk {

0 commit comments

Comments
 (0)