Skip to content

Commit 3664b98

Browse files
kknjhKernel Patches Daemon
authored and
Kernel Patches Daemon
committed
sched_ext: Remove bpf_scx_get_func_proto
task_storage_{get,delete} has been moved to bpf_base_func_proto. Suggested-by: Andrii Nakryiko <[email protected]> Signed-off-by: Feng Yang <[email protected]>
1 parent ad6cbc0 commit 3664b98

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

kernel/sched/ext.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5586,21 +5586,8 @@ static int bpf_scx_btf_struct_access(struct bpf_verifier_log *log,
55865586
return -EACCES;
55875587
}
55885588

5589-
static const struct bpf_func_proto *
5590-
bpf_scx_get_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
5591-
{
5592-
switch (func_id) {
5593-
case BPF_FUNC_task_storage_get:
5594-
return &bpf_task_storage_get_proto;
5595-
case BPF_FUNC_task_storage_delete:
5596-
return &bpf_task_storage_delete_proto;
5597-
default:
5598-
return bpf_base_func_proto(func_id, prog);
5599-
}
5600-
}
5601-
56025589
static const struct bpf_verifier_ops bpf_scx_verifier_ops = {
5603-
.get_func_proto = bpf_scx_get_func_proto,
5590+
.get_func_proto = bpf_base_func_proto,
56045591
.is_valid_access = bpf_scx_is_valid_access,
56055592
.btf_struct_access = bpf_scx_btf_struct_access,
56065593
};

0 commit comments

Comments
 (0)