diff options
author | Feng Yang <yangfeng@kylinos.cn> | 2025-05-06 14:14:34 +0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2025-05-09 11:01:45 -0700 |
commit | 8c112a428b94eabb6efde39715349a0b8dec880e (patch) | |
tree | bc97b7581f33a454c7313a5ec0b832f9b4228747 | |
parent | ee971630f20fd421fffcdc4543731ebcb54ed6d0 (diff) |
sched_ext: Remove bpf_scx_get_func_proto
task_storage_{get,delete} has been moved to bpf_base_func_proto.
Suggested-by: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Signed-off-by: Feng Yang <yangfeng@kylinos.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/bpf/20250506061434.94277-3-yangfeng59949@163.com
-rw-r--r-- | kernel/sched/ext.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c index fdbf249d1c68..cc628b009e11 100644 --- a/kernel/sched/ext.c +++ b/kernel/sched/ext.c @@ -5586,21 +5586,8 @@ static int bpf_scx_btf_struct_access(struct bpf_verifier_log *log, return -EACCES; } -static const struct bpf_func_proto * -bpf_scx_get_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) -{ - switch (func_id) { - case BPF_FUNC_task_storage_get: - return &bpf_task_storage_get_proto; - case BPF_FUNC_task_storage_delete: - return &bpf_task_storage_delete_proto; - default: - return bpf_base_func_proto(func_id, prog); - } -} - static const struct bpf_verifier_ops bpf_scx_verifier_ops = { - .get_func_proto = bpf_scx_get_func_proto, + .get_func_proto = bpf_base_func_proto, .is_valid_access = bpf_scx_is_valid_access, .btf_struct_access = bpf_scx_btf_struct_access, }; |