diff options
| author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2026-05-26 09:39:36 +0300 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2026-05-29 00:38:15 +0300 |
| commit | a4a5d4ee061240a1d39053db0a87f841d43277c0 (patch) | |
| tree | d5b3ff814655aa1c896c9905d518f0290a81e257 /include/linux | |
| parent | b23705e6afb6ac4ae6d220dcb35975698667dd76 (diff) | |
| download | linux-a4a5d4ee061240a1d39053db0a87f841d43277c0.tar.xz | |
libbpf: Add __NR_bpf definition for LoongArch
LoongArch uses the generic syscall table, where __NR_bpf is defined
as 280 in include/uapi/asm-generic/unistd.h.
To align with other architectures, add the __NR_bpf definition for
LoongArch to avoid a potential compilation failure: "error __NR_bpf
not defined. libbpf does not support your arch."
This is a follow up patch of:
commit b0c47807d31d ("bpf: Add sparc support to tools and samples.")
commit bad1926dd2f6 ("bpf, s390: fix build for libbpf and selftest suite")
commit ca31ca8247e2 ("tools/bpf: fix perf build error with uClibc (seen on ARC)")
commit e32cb12ff52a ("bpf, mips: Fix build errors about __NR_bpf undeclared")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260526063936.16769-1-yangtiezhu@loongson.cn
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
