aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXiu Jianfeng <xiujianfeng@huawei.com>2021-12-17 09:01:52 +0800
committerPaul Moore <paul@paul-moore.com>2021-12-20 14:53:27 -0500
commited98ea2128b6fd83bce13716edf8f5fe6c47f574 (patch)
tree56aa5a72f38f061c3464a5f82a95f1a93964bad7 /include
parentaudit: use struct_size() helper in audit_[send|make]_reply() (diff)
downloadlinux-dev-ed98ea2128b6fd83bce13716edf8f5fe6c47f574.tar.xz
linux-dev-ed98ea2128b6fd83bce13716edf8f5fe6c47f574.zip
audit: replace zero-length array with flexible-array member
Zero-length arrays are deprecated and should be replaced with flexible-array members. Link: https://github.com/KSPP/linux/issues/78 Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/audit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h
index 9176a095fefc..8eda133ca4c1 100644
--- a/include/uapi/linux/audit.h
+++ b/include/uapi/linux/audit.h
@@ -514,7 +514,7 @@ struct audit_rule_data {
__u32 values[AUDIT_MAX_FIELDS];
__u32 fieldflags[AUDIT_MAX_FIELDS];
__u32 buflen; /* total length of string fields */
- char buf[0]; /* string fields buffer */
+ char buf[]; /* string fields buffer */
};
#endif /* _UAPI_LINUX_AUDIT_H_ */