The FPU affinity code has a copy of check_same_owner() from the scheduler. Use the library there as well. No functional change. Compile tested only. Signed-off-by: Josef Bacik --- arch/mips/kernel/mips-mt-fpaff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/mips/kernel/mips-mt-fpaff.c b/arch/mips/kernel/mips-mt-fpaff.c index 4fead87d2f43..1ac86a897956 100644 --- a/arch/mips/kernel/mips-mt-fpaff.c +++ b/arch/mips/kernel/mips-mt-fpaff.c @@ -54,8 +54,7 @@ static bool check_same_owner(struct task_struct *p) rcu_read_lock(); pcred = __task_cred(p); - match = (uid_eq(cred->euid, pcred->euid) || - uid_eq(cred->euid, pcred->uid)); + match = cred_ids_allow_sched(cred, pcred); rcu_read_unlock(); return match; } -- 2.55.0