sctp: delete the nested flexible array skip
authorXin Long <lucien.xin@gmail.com>
Wed, 19 Apr 2023 15:16:29 +0000 (11:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2023 07:19:29 +0000 (08:19 +0100)
commit73175a042955e531ec355a8708585befa67a22db
treeb5f9010f4b1d5d777db91a12e2fa01da0020d145
parentadd7370a398930077c6bc257ef5016b040d476eb
sctp: delete the nested flexible array skip

This patch deletes the flexible-array skip[] from the structure
sctp_ifwdtsn/fwdtsn_hdr to avoid some sparse warnings:

  # make C=2 CF="-Wflexible-array-nested" M=./net/sctp/
  net/sctp/stream_interleave.c: note: in included file (through include/net/sctp/structs.h, include/net/sctp/sctp.h):
  ./include/linux/sctp.h:611:32: warning: nested flexible array
  ./include/linux/sctp.h:628:33: warning: nested flexible array

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sctp.h
include/net/sctp/sctp.h
net/sctp/stream_interleave.c