sctp: delete the nested flexible array payload
authorXin Long <lucien.xin@gmail.com>
Wed, 19 Apr 2023 15:16:33 +0000 (11:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2023 07:19:30 +0000 (08:19 +0100)
commitdbda0fba7a14f14835c34d59fd329cb90a887862
treecdbc45676febaf1c04d4e10a8c51dc23dded8f90
parent2ab399a931dddacdf7202cd4b49a5187154623d1
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>
include/linux/sctp.h