On 10/01/2024 05:03, Amit Daniel Kachhap wrote:
I did a quick search of CONFIG_COMPAT. All the changes look fine to me and probably below code can also be included.
diff --git a/arch/arm64/kernel/syscall.c b/arch/arm64/kernel/syscall.c index 0feb55df863f..2116ee0bb7e2 100644 --- a/arch/arm64/kernel/syscall.c +++ b/arch/arm64/kernel/syscall.c @@ -204,7 +204,7 @@ void do_el0_svc(struct pt_regs *regs) el0_svc_common(regs, regs->regs[8], __NR_syscalls, table); }
-#ifdef CONFIG_COMPAT +#ifdef CONFIG_COMPAT32 void do_el0_svc_compat(struct pt_regs *regs) { el0_svc_common(regs, regs->regs[7], __NR_compat_syscalls,
Thanks for the review, and good catch! I didn't look carefully, I thought this was for compat in general, but in fact compat64 is handled in do_el0_svc(). Will change that #ifdef too.
Kevin