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

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

  # make C=2 CF="-Wflexible-array-nested" M=./net/sctp/
  net/sctp/auth.c: note: in included file (through include/net/sctp/structs.h, include/net/sctp/sctp.h):
  ./include/linux/sctp.h:735:29: 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
net/sctp/auth.c
net/sctp/sm_statefuns.c