aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/sctp.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2023-04-19 11:16:33 -0400
committerDavid S. Miller <davem@davemloft.net>2023-04-21 08:19:30 +0100
commitdbda0fba7a14f14835c34d59fd329cb90a887862 (patch)
treecdbc45676febaf1c04d4e10a8c51dc23dded8f90 /include/linux/sctp.h
parentsctp: delete the nested flexible array hmac (diff)
downloadwireguard-linux-dbda0fba7a14f14835c34d59fd329cb90a887862.tar.xz
wireguard-linux-dbda0fba7a14f14835c34d59fd329cb90a887862.zip
sctp: delete the nested flexible array payload
This patch deletes the flexible-array payload[] from the structure sctp_datahdr to avoid some sparse warnings: # make C=2 CF="-Wflexible-array-nested" M=./net/sctp/ net/sctp/socket.c: note: in included file (through include/net/sctp/structs.h, include/net/sctp/sctp.h): ./include/linux/sctp.h:230:29: warning: nested flexible array This member is not even used anywhere. 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h
index d182e8c41985..836a7e200f39 100644
--- a/include/linux/sctp.h
+++ b/include/linux/sctp.h
@@ -222,7 +222,7 @@ struct sctp_datahdr {
__be16 stream;
__be16 ssn;
__u32 ppid;
- __u8 payload[];
+ /* __u8 payload[]; */
};
struct sctp_data_chunk {