Merge pull request #472 from hodgesds/const-fixes

scx_layered: Fix cred declaration
This commit is contained in:
Daniel Hodges 2024-08-06 14:03:19 -04:00 committed by GitHub
commit fee0995691
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -982,7 +982,7 @@ void BPF_STRUCT_OPS(layered_dispatch, s32 cpu, struct task_struct *prev)
static bool match_one(struct layer_match *match, struct task_struct *p, const char *cgrp_path)
{
bool result = false;
struct cred *cred;
const struct cred *cred;
switch (match->kind) {
case MATCH_CGROUP_PREFIX: {