]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
uapi: update to bpf.h
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 19 May 2020 21:31:54 +0000 (14:31 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 19 May 2020 21:31:54 +0000 (14:31 -0700)
Part of the zero-length array changes

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/uapi/linux/bpf.h

index 60684b7be8b20d0fb543a33c68d7f8d4893c9f62..bc84f10a046fbca169b7546049d43f845083e126 100644 (file)
@@ -73,7 +73,7 @@ struct bpf_insn {
 /* Key of an a BPF_MAP_TYPE_LPM_TRIE entry */
 struct bpf_lpm_trie_key {
        __u32   prefixlen;      /* up to 32 for AF_INET, 128 for AF_INET6 */
-       __u8    data[]; /* Arbitrary size */
+       __u8    data[0];        /* Arbitrary size */
 };
 
 struct bpf_cgroup_storage_key {