aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2024-11-06 06:35:41 +0000
committerAndrii Nakryiko <[email protected]>2024-11-11 16:18:35 +0000
commit503cfb103c8d6ca4f23a9abbf36672c9cfe6f745 (patch)
tree69a0dba6b26976a8f1af526833efd15d219283bb /tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
parentbpf: Call free_htab_elem() after htab_unlock_bucket() (diff)
downloadkernel-503cfb103c8d6ca4f23a9abbf36672c9cfe6f745.tar.gz
kernel-503cfb103c8d6ca4f23a9abbf36672c9cfe6f745.zip
selftests/bpf: Move ENOTSUPP from bpf_util.h
Moving the definition of ENOTSUPP into bpf_util.h to remove the duplicated definitions in multiple files. Signed-off-by: Hou Tao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c b/tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
index 130a3b21e467..6df25de8f080 100644
--- a/tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
+++ b/tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c
@@ -10,10 +10,6 @@
#include "cgroup_helpers.h"
#include "network_helpers.h"
-#ifndef ENOTSUPP
-#define ENOTSUPP 524
-#endif
-
static struct btf *btf;
static __u32 query_prog_cnt(int cgroup_fd, const char *attach_func)