Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'enable-the-inline-of-kptr_xchg-for-arm64'

Hou Tao says:

====================
Enable the inline of kptr_xchg for arm64

From: Hou Tao <houtao1@huawei.com>

Hi,

The patch set is just a follow-up for "bpf: inline bpf_kptr_xchg()". It
enables the inline of bpf_kptr_xchg() and kptr_xchg_inline test for
arm64.

Please see individual patches for more details. And comments are always
welcome.
====================

Link: https://lore.kernel.org/r/20240119102529.99581-1-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

+6 -1
+5
arch/arm64/net/bpf_jit_comp.c
··· 2305 2305 2306 2306 return ret; 2307 2307 } 2308 + 2309 + bool bpf_jit_supports_ptr_xchg(void) 2310 + { 2311 + return true; 2312 + }
+1 -1
tools/testing/selftests/bpf/prog_tests/kptr_xchg_inline.c
··· 13 13 unsigned int cnt; 14 14 int err; 15 15 16 - #if !defined(__x86_64__) 16 + #if !(defined(__x86_64__) || defined(__aarch64__)) 17 17 test__skip(); 18 18 return; 19 19 #endif