Skip to content

Commit

Permalink
rusty: Make lookup_task_ctx() static
Browse files Browse the repository at this point in the history
It doesn't need to be a global prog. Let's make it static.

Signed-off-by: David Vernet <void@manifault.com>
  • Loading branch information
Byte-Lab committed Apr 12, 2024
1 parent 0ff7375 commit 885a9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheds/rust/scx_rusty/src/bpf/main.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ struct {
__uint(map_flags, 0);
} task_data SEC(".maps");

struct task_ctx *lookup_task_ctx(struct task_struct *p)
static struct task_ctx *lookup_task_ctx(struct task_struct *p)
{
struct task_ctx *taskc;
s32 pid = p->pid;
Expand Down

0 comments on commit 885a9fd

Please sign in to comment.