sctp: delete the nested flexible array peer_init
authorXin Long <lucien.xin@gmail.com>
Wed, 19 Apr 2023 15:16:31 +0000 (11:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2023 07:19:30 +0000 (08:19 +0100)
commitf97278ff346a5f11c68d0ac499999d5ad06a6db2
tree0764e256eead447868e2f2ce2ce136a8c55f0c48
parent9789c1c6619e0a5eccfc31abe49b1ce5ca3cd11f
sctp: delete the nested flexible array peer_init

This patch deletes the flexible-array peer_init[] from the structure
sctp_cookie to avoid some sparse warnings:

  # make C=2 CF="-Wflexible-array-nested" M=./net/sctp/
  net/sctp/sm_make_chunk.c: note: in included file (through include/net/sctp/sctp.h):
  ./include/net/sctp/structs.h:1588:28: warning: nested flexible array
  ./include/net/sctp/structs.h:343:28: warning: nested flexible array

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