From 96583e9cb9414c867c0f0cb39beacb9d6031584a Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Wed, 27 Sep 2023 01:01:12 +0900 Subject: [PATCH] tests: (test_mkfds) use SYS_bpf instead of __NR_bpf Signed-off-by: Masatake YAMATO --- tests/helpers/test_mkfds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)"); -- 2.47.3