From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: Date: Fri, 26 Aug 2022 13:37:01 -0700 MIME-Version: 1.0 Subject: Re: [PATCH 1/2] um: Cleanup syscall_handler_t cast in syscalls_32.h Content-Language: en-US References: <20220826152927.193d262c@gecko> From: Randy Dunlap In-Reply-To: <20220826152927.193d262c@gecko> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" Errors-To: linux-um-bounces+geert=linux-m68k.org@lists.infradead.org To: Lukas Straub , linux-um Cc: Richard Weinberger , Anton Ivanov , Johannes Berg , x86@kernel.org, linux-kernel@vger.kernel.org On 8/26/22 08:29, Lukas Straub wrote: > Like in f4f03f299a56ce4d73c5431e0327b3b6cb55ebb9 > "um: Cleanup syscall_handler_t definition/cast, fix warning", > remove the cast to to fix the compiler warning. > > Signed-off-by: Lukas Straub Acked-by: Randy Dunlap # build-tested Thanks. > --- > arch/x86/um/shared/sysdep/syscalls_32.h | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/arch/x86/um/shared/sysdep/syscalls_32.h b/arch/x86/um/shared/sysdep/syscalls_32.h > index 68fd2cf526fd..f6e9f84397e7 100644 > --- a/arch/x86/um/shared/sysdep/syscalls_32.h > +++ b/arch/x86/um/shared/sysdep/syscalls_32.h > @@ -6,10 +6,9 @@ > #include > #include > > -typedef long syscall_handler_t(struct pt_regs); > +typedef long syscall_handler_t(struct syscall_args); > > extern syscall_handler_t *sys_call_table[]; > > #define EXECUTE_SYSCALL(syscall, regs) \ > - ((long (*)(struct syscall_args)) \ > - (*sys_call_table[syscall]))(SYSCALL_ARGS(®s->regs)) > + ((*sys_call_table[syscall]))(SYSCALL_ARGS(®s->regs)) -- ~Randy _______________________________________________ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um