mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
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>
This commit is contained in:
commit
c80c6434aa
2 changed files with 6 additions and 1 deletions
|
@ -2305,3 +2305,8 @@ int bpf_arch_text_poke(void *ip, enum bpf_text_poke_type poke_type,
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool bpf_jit_supports_ptr_xchg(void)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ void test_kptr_xchg_inline(void)
|
|||
unsigned int cnt;
|
||||
int err;
|
||||
|
||||
#if !defined(__x86_64__)
|
||||
#if !(defined(__x86_64__) || defined(__aarch64__))
|
||||
test__skip();
|
||||
return;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue