diff options
author | Xin Long <lucien.xin@gmail.com> | 2023-04-19 11:16:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-21 08:19:29 +0100 |
commit | 9789c1c6619e0a5eccfc31abe49b1ce5ca3cd11f (patch) | |
tree | 26204eeff7bb1548244bc045b4e2c81323f6a652 /include/linux/sctp.h | |
parent | 73175a042955e531ec355a8708585befa67a22db (diff) | |
download | lwn-9789c1c6619e0a5eccfc31abe49b1ce5ca3cd11f.tar.gz lwn-9789c1c6619e0a5eccfc31abe49b1ce5ca3cd11f.zip |
sctp: delete the nested flexible array variable
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: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/sctp.h')
-rw-r--r-- | include/linux/sctp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h index 9815b801fec0..01a0eb7e9fa1 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -385,7 +385,7 @@ struct sctp_sackhdr { __be32 a_rwnd; __be16 num_gap_ack_blocks; __be16 num_dup_tsns; - union sctp_sack_variable variable[]; + /* union sctp_sack_variable variable[]; */ }; struct sctp_sack_chunk { @@ -443,7 +443,7 @@ struct sctp_shutdown_chunk { struct sctp_errhdr { __be16 cause; __be16 length; - __u8 variable[]; + /* __u8 variable[]; */ }; struct sctp_operr_chunk { |