arm64: remove in-kernel call to sys_personality()
authorMark Rutland <mark.rutland@arm.com>
Wed, 11 Jul 2018 13:56:52 +0000 (14:56 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 12 Jul 2018 13:49:48 +0000 (14:49 +0100)
With pt_regs syscall wrappers, the calling convention for
sys_personality() will change. Use ksys_personality(), which is
functionally equivalent.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/sys.c

index df81801..f4e02f6 100644 (file)
@@ -44,7 +44,7 @@ SYSCALL_DEFINE1(arm64_personality, unsigned int, personality)
        if (personality(personality) == PER_LINUX32 &&
                !system_supports_32bit_el0())
                return -EINVAL;
-       return sys_personality(personality);
+       return ksys_personality(personality);
 }
 
 /*