summaryrefslogtreecommitdiffstats
path: root/include/linux/sctp.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2023-04-19 11:16:32 -0400
committerDavid S. Miller <davem@davemloft.net>2023-04-21 08:19:30 +0100
commit2ab399a931dddacdf7202cd4b49a5187154623d1 (patch)
tree75d26d5810a8942257ebb93bf9be54c58f974a2b /include/linux/sctp.h
parentf97278ff346a5f11c68d0ac499999d5ad06a6db2 (diff)
downloadlinux-2ab399a931dddacdf7202cd4b49a5187154623d1.tar.gz
linux-2ab399a931dddacdf7202cd4b49a5187154623d1.tar.bz2
linux-2ab399a931dddacdf7202cd4b49a5187154623d1.zip
sctp: delete the nested flexible array hmac
This patch deletes the flexible-array hmac[] from the structure sctp_authhdr to avoid some sparse warnings: # make C=2 CF="-Wflexible-array-nested" M=./net/sctp/ net/sctp/auth.c: note: in included file (through include/net/sctp/structs.h, include/net/sctp/sctp.h): ./include/linux/sctp.h:735: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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h
index 01a0eb7e9fa1..d182e8c41985 100644
--- a/include/linux/sctp.h
+++ b/include/linux/sctp.h
@@ -727,7 +727,7 @@ struct sctp_addip_chunk {
struct sctp_authhdr {
__be16 shkey_id;
__be16 hmac_id;
- __u8 hmac[];
+ /* __u8 hmac[]; */
};
struct sctp_auth_chunk {