On Fri, 16 Feb 2024 11:10:36 +0100, Christophe Leroy wrote:
> There is a nice macro to check user mode.
>
> Use it instead of open coding anding with MSR_PR to increase
> readability and avoid having to comment what that anding is for.
>
>
Applied to powerpc/next.
[1/1] powerpc: Use user_mode(
There is a nice macro to check user mode.
Use it instead of open coding anding with MSR_PR to increase
readability and avoid having to comment what that anding is for.
Signed-off-by: Christophe Leroy
---
arch/powerpc/include/asm/interrupt.h | 2 +-
arch/powerpc/kernel/syscall.c| 2 +-