]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - include/linux/btf.h
bpf: refactory struct_ops type initialization to a function.
authorKui-Feng Lee <thinker.li@gmail.com>
Fri, 19 Jan 2024 22:49:52 +0000 (14:49 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 24 Jan 2024 00:37:43 +0000 (16:37 -0800)
commit3b1f89e747cd4b24244f2798a35d28815b744303
tree8be9712b5832eaf504966010fc01e0a338eefb35
parentb7d1af3791036a619ca8ffde5f832111b05ca833
bpf: refactory struct_ops type initialization to a function.

Move the majority of the code to bpf_struct_ops_init_one(), which can then
be utilized for the initialization of newly registered dynamically
allocated struct_ops types in the following patches.

Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Link: https://lore.kernel.org/r/20240119225005.668602-2-thinker.li@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
include/linux/btf.h
kernel/bpf/bpf_struct_ops.c
kernel/bpf/btf.c