• Xin Long's avatar
    sctp: delete the nested flexible array params · add7370a
    Xin Long authored
    This patch deletes the flexible-array params[] from the structure
    sctp_inithdr, sctp_addiphdr and sctp_reconf_chunk to avoid some
    sparse warnings:
    
      # make C=2 CF="-Wflexible-array-nested" M=./net/sctp/
      net/sctp/input.c: note: in included file (through include/net/sctp/structs.h, include/net/sctp/sctp.h):
      ./include/linux/sctp.h:278:29: warning: nested flexible array
      ./include/linux/sctp.h:675:30: warning: nested flexible array
    
    This warning is reported if a structure having a flexible array
    member is included by other structures.
    Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    add7370a
input.c 36.2 KB