From: Masatake YAMATO Date: Tue, 26 Sep 2023 16:01:12 +0000 (+0900) Subject: tests: (test_mkfds) use SYS_bpf instead of __NR_bpf X-Git-Tag: v2.40-rc1~224^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96583e9cb9414c867c0f0cb39beacb9d6031584a;p=thirdparty%2Futil-linux.git tests: (test_mkfds) use SYS_bpf instead of __NR_bpf Signed-off-by: Masatake YAMATO --- diff --git a/tests/helpers/test_mkfds.c b/tests/helpers/test_mkfds.c index b8785430b2..2e8e0ba29e 100644 --- a/tests/helpers/test_mkfds.c +++ b/tests/helpers/test_mkfds.c @@ -2873,7 +2873,7 @@ static void *make_bpf_prog(const struct factory *factory, struct fdesc fdescs[], attr.insn_cnt = ARRAY_SIZE(insns); attr.license = (int64_t)(unsigned long)"GPL"; - bfd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); + bfd = syscall(SYS_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); if (bfd < 0) err((errno == ENOSYS? EXIT_ENOSYS: EXIT_FAILURE), "failed in bpf(BPF_PROG_LOAD)"); @@ -2967,7 +2967,7 @@ static void *make_bpf_map(const struct factory *factory, struct fdesc fdescs[], .max_entries = 10, }; - bfd = syscall(__NR_bpf, BPF_MAP_CREATE, &attr, sizeof(attr)); + bfd = syscall(SYS_bpf, BPF_MAP_CREATE, &attr, sizeof(attr)); if (bfd < 0) err((errno == ENOSYS? EXIT_ENOSYS: EXIT_FAILURE), "failed in bpf(BPF_MAP_CREATE)");