rusty: Make lookup_task_ctx() static

It doesn't need to be a global prog. Let's make it static.

Signed-off-by: David Vernet <void@manifault.com>
This commit is contained in:
David Vernet 2024-04-11 19:22:32 -05:00
parent 0ff73754cf
commit 885a9fd7da
No known key found for this signature in database
GPG Key ID: 59E4B86965C4F364

View File

@ -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;