diff options
author | Xin Long <lucien.xin@gmail.com> | 2023-04-19 17:16:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-21 09:19:29 +0200 |
commit | add7370a398930077c6bc257ef5016b040d476eb (patch) | |
tree | ca773a8c587e4ca6423fbb77a775f0a1c97b48e6 /net/sctp/stream.c | |
parent | Merge branch 'net-extend-drop-reasons' (diff) | |
download | linux-add7370a398930077c6bc257ef5016b040d476eb.tar.xz linux-add7370a398930077c6bc257ef5016b040d476eb.zip |
sctp: delete the nested flexible array params
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: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/sctp/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/stream.c b/net/sctp/stream.c index ee6514af830f..c241cc552e8d 100644 --- a/net/sctp/stream.c +++ b/net/sctp/stream.c @@ -491,7 +491,7 @@ static struct sctp_paramhdr *sctp_chunk_lookup_strreset_param( return NULL; hdr = (struct sctp_reconf_chunk *)chunk->chunk_hdr; - sctp_walk_params(param, hdr, params) { + sctp_walk_params(param, hdr) { /* sctp_strreset_tsnreq is actually the basic structure * of all stream reconf params, so it's safe to use it * to access request_seq. |