• Xin Long's avatar
    sctp: delete the nested flexible array variable · 9789c1c6
    Xin Long authored
    This patch deletes the flexible-array variable[] from the structure
    sctp_sackhdr and sctp_errhdr to avoid some sparse warnings:
    
      # make C=2 CF="-Wflexible-array-nested" M=./net/sctp/
      net/sctp/sm_statefuns.c: note: in included file (through include/net/sctp/structs.h, include/net/sctp/sctp.h):
      ./include/linux/sctp.h:451:28: warning: nested flexible array
      ./include/linux/sctp.h:393:29: warning: nested flexible array
    Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9789c1c6
sm_sideeffect.c 50.9 KB