lkml.org 
[lkml]   [2018]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 1/6] powerpc/syscalls: Switch trivial cases to SYSCALL_DEFINE
Date
"Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> writes:

> Michael Ellerman wrote:
>> From: Al Viro <viro@zeniv.linux.org.uk>
>>
>> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
>> ---
>> arch/powerpc/kernel/pci_32.c | 6 +++---
>> arch/powerpc/kernel/pci_64.c | 4 ++--
>> arch/powerpc/mm/subpage-prot.c | 4 +++-
>> arch/powerpc/platforms/cell/spu_syscalls.c | 3 ++-
>> 4 files changed, 10 insertions(+), 7 deletions(-)
>>
>
> I suppose we can also do this for switch_endian?

Yeah. It'd nice to have an automated test that every syscall is
available via FTRACE_SYSCALLS, I just haven't got around to writing one.

cheers

> diff --git a/arch/powerpc/kernel/syscalls.c b/arch/powerpc/kernel/syscalls.c
> index 466216506eb2..290265f2700c 100644
> --- a/arch/powerpc/kernel/syscalls.c
> +++ b/arch/powerpc/kernel/syscalls.c
> @@ -123,7 +123,7 @@ long ppc_fadvise64_64(int fd, int advice, u32 offset_high, u32 offset_low,
> (u64)len_high << 32 | len_low, advice);
> }
>
> -long sys_switch_endian(void)
> +SYSCALL_DEFINE0(switch_endian)
> {
> struct thread_info *ti;
>
>
> - Naveen

\
 
 \ /
  Last update: 2018-05-07 04:43    [W:0.154 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site