diff options
author | Hou Tao <houtao1@huawei.com> | 2024-11-06 14:35:41 +0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-11-11 08:18:35 -0800 |
commit | 503cfb103c8d6ca4f23a9abbf36672c9cfe6f745 (patch) | |
tree | 69a0dba6b26976a8f1af526833efd15d219283bb /tools/testing/selftests/bpf/bpf_util.h | |
parent | b9e9ed90b10c82a4e9d4d70a2890f06bfcdd3b78 (diff) | |
download | linux-503cfb103c8d6ca4f23a9abbf36672c9cfe6f745.tar.gz linux-503cfb103c8d6ca4f23a9abbf36672c9cfe6f745.tar.bz2 linux-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 <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20241106063542.357743-3-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_util.h')
-rw-r--r-- | tools/testing/selftests/bpf/bpf_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/bpf_util.h b/tools/testing/selftests/bpf/bpf_util.h index feff92219e21..5f6963a320d7 100644 --- a/tools/testing/selftests/bpf/bpf_util.h +++ b/tools/testing/selftests/bpf/bpf_util.h @@ -67,5 +67,8 @@ static inline void bpf_strlcpy(char *dst, const char *src, size_t sz) #define sys_gettid() syscall(SYS_gettid) #endif +#ifndef ENOTSUPP +#define ENOTSUPP 524 +#endif #endif /* __BPF_UTIL__ */ |