Commit 74c61d74 authored by Yufen Yu's avatar Yufen Yu Committed by Yang Yingliang
Browse files

tools: libbpf: fix compiler error



hulk inclusion
category: feature
bugzilla: NA
CVE: NA

-------------------------------------------------

This patch tries to fix follow gcc error:

libbpf.c: In function ‘bpf_prog_type__needs_kver’:
libbpf.c:1495:2: error: enumeration value ‘BPF_PROG_TYPE_FLOW_DISSECTOR’ not handled in switch [-Werror=switch-enum]
 1495 |  switch (type) {
      |  ^~~~~~
libbpf.c:1495:2: error: enumeration value ‘BPF_PROG_TYPE_CGROUP_SYSCTL’ not handled in switch [-Werror=switch-enum]
cc1: all warnings being treated as errors
mv: cannot stat './.libbpf.o.tmp': No such file or directory

Fixes: 4635b0ae ("tools: sync bpf.h")
Signed-off-by: default avatarYufen Yu <yuyufen@huawei.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent c365b334
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment