[PATCH 103/109] syscalls: sort syscall prototypes in include/linux/syscalls.h

2018-03-29 Thread Dominik Brodowski
Shuffle the syscall prototypes in include/linux/syscalls.h around so that they are kept in the same order as in include/uapi/asm-generic/unistd.h. The individual entries are kept the same, and neither modified to bring them in line with kernel coding style nor wrapped in proper ifdefs. Cc: Arnd Be

[PATCH 026/109] net: socket: add __compat_sys_setsockopt() helper; remove in-kernel call to compat syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __compat_sys_setsockopt() allows us to avoid the internal calls to the compat_sys_setsockopt() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.ker

[PATCH 080/109] fs: add do_faccessat() helper and ksys_access() wrapper; remove in-kernel calls to syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_faccessat() helper allows us to get rid of fs-internal calls to the sys_faccessat() syscall. Introducing the ksys_access() wrapper allows us to avoid the in-kernel calls to the sys_access() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacem

[PATCH 094/109] fs: add ksys_p{read,write}64() helpers; remove in-kernel calls to syscalls

2018-03-29 Thread Dominik Brodowski
Using the ksys_p{read,write}64() wrappers allows us to get rid of in-kernel calls to the sys_pread64() and sys_pwrite64() syscalls. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_p{read,write}6

[PATCH 044/109] mm: add kernel_migrate_pages() helper, move compat syscall to mm/mempolicy.c

2018-03-29 Thread Dominik Brodowski
Move compat_sys_migrate_pages() to mm/mempolicy.c and make it call a newly introduced helper -- kernel_migrate_pages() -- instead of the syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see htt

[PATCH 078/109] fs: add do_linkat() helper and ksys_link() wrapper; remove in-kernel calls to syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_linkat() helper allows us to get rid of fs-internal calls to the sys_linkat() syscall. Introducing the ksys_link() wrapper allows us to avoid the in-kernel calls to sys_link() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the sy

[PATCH 068/109] fs: add ksys_dup{,3}() helper; remove in-kernel calls to sys_dup{,3}()

2018-03-29 Thread Dominik Brodowski
Using ksys_dup() and ksys_dup3() as helper functions allows us to avoid the in-kernel calls to the sys_dup() and sys_dup3() syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_dup{,3}

[PATCH 057/109] fs: add kern_select() helper; remove in-kernel call to sys_select()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel call to the sys_umount() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.ga17...@light.dominikbro

[PATCH 030/109] ipc: add semtimedop syscall/compat_syscall wrappers

2018-03-29 Thread Dominik Brodowski
Provide ksys_semtimedop() and compat_ksys_semtimedop() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_semtimedop() and compat_sys_semti

Re: [PATCH v3 0/6] clocksource: rework Atmel TCB timer driver

2018-03-29 Thread Alexander Dahl
Hello Alexandre, Am Donnerstag, 29. März 2018, 12:45:42 CEST schrieb Alexandre Belloni: > > This is the result: > > > > INTNAME RATE MAX > > > > 17 [vel timer@fffa] 1837 Ints/s (max: 1912) > > 26 [ vel eth0] 3 Ints/s (max:11)

[PATCH 040/109] kernel: add do_getpgid() helper; remove internal call to sys_getpgid()

2018-03-29 Thread Dominik Brodowski
Using the do_getpgid() helper removes an in-kernel call to the sys_getpgid() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.ga17...@light.dominikbr

[PATCH 051/109] fs: add do_futimesat() helper; remove internal call to sys_futimesat()

2018-03-29 Thread Dominik Brodowski
Using this helper removes the in-kernel call to the sys_futimesat() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.ga17...@light.dominikbrodowski.n

[PATCH v5 02/16] riscv: Free initrds with generic free_initrd_mem.

2018-03-29 Thread Shea Levy
Now that there is a generic implementation, riscv's noop stub can be removed. Signed-off-by: Shea Levy --- arch/riscv/mm/init.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index c77df8142be2..36f83fe8a726 100644 --- a/arch/riscv/mm/init.c

[PATCH v5 03/16] alpha: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/alpha/mm/init.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/alpha/mm/init.c b/arch/alpha/mm/init.c index 9d74520298ab..55f7c8efa962 100644 --- a/arch/alpha/mm/init.c +++ b/arch/alpha/mm/in

[PATCH v5 06/16] frv: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/frv/mm/init.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/arch/frv/mm/init.c b/arch/frv/mm/init.c index cf464100e838..345edc4dc462 100644 --- a/arch/frv/mm/init.c +++ b/arch/frv/mm/init.c

[PATCH v5 16/16] um: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/um/kernel/mem.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index 3c0e470ea646..2d26eec92126 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/me

[PATCH v5 14/16] powerpc: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/powerpc/mm/mem.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index fe8c61149fb8..e85b2a3cd264 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/

[PATCH v5 11/16] nios2: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/nios2/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/nios2/mm/init.c b/arch/nios2/mm/init.c index c92fe4234009..3df75ff8c768 100644 --- a/arch/nios2/mm/init.c +++ b/arch/nios2/mm/ini

[PATCH v5 08/16] m32r: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/m32r/mm/init.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/arch/m32r/mm/init.c b/arch/m32r/mm/init.c index 93abc8c3a46e..e2b5f09209ee 100644 --- a/arch/m32r/mm/init.c +++ b/arch/m32r/mm/in

[PATCH v5 15/16] sh: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/sh/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index ce0bbaa7e404..7451459d0725 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c @@ -477,13

[PATCH v5 13/16] parisc: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/parisc/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index cab32ee824d2..3643399230f3 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/m

Re: [PATCH 4/8] dma-buf: add peer2peer flag

2018-03-29 Thread Christian König
Am 29.03.2018 um 08:57 schrieb Daniel Vetter: On Sun, Mar 25, 2018 at 12:59:56PM +0200, Christian König wrote: Add a peer2peer flag noting that the importer can deal with device resources which are not backed by pages. Signed-off-by: Christian König Um strictly speaking they all should, but t

[PATCH v5 09/16] m68k: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Acked-by: Geert Uytterhoeven Signed-off-by: Shea Levy --- arch/m68k/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/m68k/mm/init.c b/arch/m68k/mm/init.c index e85acd131fa8..e20bef09258c 100644 --- a/arch/m68k/mm/init

[PATCH v5 10/16] microblaze: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/microblaze/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index df6de7ccdc2e..ea058dfda222 100644 --- a/arch/microblaze/mm/init.c +++

[PATCH v5 12/16] openrisc: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/openrisc/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c index 6972d5d6f23f..c1a3dcf9ad40 100644 --- a/arch/openrisc/mm/init.c +++ b/arch/

[PATCH v5 05/16] c6x: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/c6x/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/c6x/mm/init.c b/arch/c6x/mm/init.c index 4cc72b0d1c1d..a11cb657182a 100644 --- a/arch/c6x/mm/init.c +++ b/arch/c6x/mm/init.c @@ -66

[PATCH v5 07/16] h8300: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/h8300/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/h8300/mm/init.c b/arch/h8300/mm/init.c index 015287ac8ce8..37574332b202 100644 --- a/arch/h8300/mm/init.c +++ b/arch/h8300/mm/ini

[PATCH v5 04/16] arc: Switch to generic free_initrd_mem.

2018-03-29 Thread Shea Levy
The generic implementation is functionally identical. Signed-off-by: Shea Levy --- arch/arc/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c index ba145065c579..7bcf23ab1756 100644 --- a/arch/arc/mm/init.c +++ b/arch/arc/mm/init.c @@ -22

[PATCH v5 01/16] initrd: Add weakly-linked generic free_initrd_mem.

2018-03-29 Thread Shea Levy
This function is effectively identical across 14 architectures, and the generic implementation is small enough to be negligible in the architectures that do override it. Many of the remaining divergent implementations can be included in the common code path in future, further reducing code duplicat

[PATCH 016/109] net: socket: add __sys_getpeername() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_getpeername() allows us to avoid the internal calls to the sys_getpeername() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20

[PATCH 035/109] ipc: add shmdt syscall wrapper

2018-03-29 Thread Dominik Brodowski
Provide ksys_shmdt() wrapper to avoid in-kernel calls to this syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_shmdt(). This patch is part of a series which removes in-kernel calls to s

[PATCH 009/109] net: socket: add __sys_sendto() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_sendto() allows us to avoid the internal calls to the sys_sendto() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/201803251625

[PATCH 011/109] net: socket: add __sys_socket() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_socket() allows us to avoid the internal calls to the sys_socket() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/201803251625

[PATCH 014/109] net: socket: add __sys_listen() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_listen() allows us to avoid the internal calls to the sys_listen() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/201803251625

[PATCH 082/109] fs: add ksys_ftruncate() wrapper; remove in-kernel calls to sys_ftruncate()

2018-03-29 Thread Dominik Brodowski
Using the ksys_ftruncate() wrapper allows us to get rid of in-kernel calls to the sys_ftruncate() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_ftruncate(). This patch is part of a s

[PATCH 002/109] kernel: use kernel_wait4() instead of sys_wait4()

2018-03-29 Thread Dominik Brodowski
All call sites of sys_wait4() set *rusage to NULL. Therefore, there is no need for the copy_to_user() handling of *rusage, and we can use kernel_wait4() directly. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For

[PATCH 018/109] net: socket: add __sys_shutdown() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_shutdown() allows us to avoid the internal calls to the sys_shutdown() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325

[PATCH 023/109] net: socket: replace calls to sys_send() with __sys_sendto()

2018-03-29 Thread Dominik Brodowski
sys_send() merely expands the parameters to __sys_sendto() by NULL and 0. Open-code this in the two places which used sys_send() as a wrapper to __sys_sendto(). This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For d

[PATCH 097/109] mm: add ksys_mmap_pgoff() helper; remove in-kernel calls to sys_mmap_pgoff()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_mmap_pgoff() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_mmap_pgoff(). This patch is part of a series which remo

[PATCH 033/109] ipc: add msgget syscall wrapper

2018-03-29 Thread Dominik Brodowski
Provide ksys_msgget() wrapper to avoid in-kernel calls to this syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_msgget(). This patch is part of a series which removes in-kernel calls to

[PATCH 031/109] ipc: add semget syscall wrapper

2018-03-29 Thread Dominik Brodowski
Provide ksys_semget() wrapper to avoid in-kernel calls to this syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_semget(). This patch is part of a series which removes in-kernel calls to

[PATCH 066/109] fs: add ksys_mount() helper; remove in-kernel calls to sys_mount()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_mount() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_mount(). In the near future, all callers of ksys_mount() sho

[PATCH 069/109] fs: add ksys_chroot() helper; remove-in kernel calls to sys_chroot()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_chroot() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_chroot(). In the near future, the fs-external callers of ks

[PATCH 060/109] fs: add do_compat_signalfd4() helper; remove in-kernel call to compat syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_compat_signalfd4() helper allows us to get rid of the fs-internal call to the compat_sys_signalfd4() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.ke

[PATCH 088/109] fs: add ksys_read() helper; remove in-kernel calls to sys_read()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_read() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_read(). This patch is part of a series which removes in-kerne

[PATCH 029/109] net: socket: add __compat_sys_...msg() helpers; remove in-kernel calls to compat syscalls

2018-03-29 Thread Dominik Brodowski
Using the net-internal helpers __compat_sys_...msg() allows us to avoid the internal calls to the compat_sys_...msg() syscalls. compat_sys_recvmmsg() is handled in a different patch. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can

Re: [PATCH 043/109] sched: add do_sched_yield() helper; remove in-kernel call to sched_yield()

2018-03-29 Thread Peter Zijlstra
On Thu, Mar 29, 2018 at 01:23:20PM +0200, Dominik Brodowski wrote: > Using the sched-internal do_sched_yield() helper allows us to get rid of > the sched-internal call to the sys_sched_yield() syscall. > > This patch is part of a series which removes in-kernel calls to syscalls. > On this basis, t

[PATCH 091/109] kernel: add ksys_setsid() helper; remove in-kernel call to sys_setsid()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel call to the sys_setsid() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_setsid(). This patch is part of a series which removes in-ke

[PATCH 104/109] net: remove compat_sys_*() prototypes from net/compat.h

2018-03-29 Thread Dominik Brodowski
As the syscall functions should only be called from the system call table but not from elsewhere in the kernel, it is sufficient that they are defined in linux/compat.h. Cc: David S. Miller Cc: net...@vger.kernel.org Signed-off-by: Dominik Brodowski --- include/net/compat.h | 11 --- 1

[PATCH 100/109] x86: fix sys_sigreturn() return type to be long, not unsigned long

2018-03-29 Thread Dominik Brodowski
Same as with other system calls, sys_sigreturn() should return a value of type long, not unsigned long. This also matches the behaviour for IA32_EMULATION, see sys32_sigreturn() in arch/x86/ia32/ia32_signal.c . Cc: Andi Kleen Cc: Ingo Molnar Cc: Jiri Slaby Cc: x...@kernel.org Cc: Michael Tautsc

[PATCH 083/109] fs: add ksys_close() wrapper; remove in-kernel calls to sys_close()

2018-03-29 Thread Dominik Brodowski
Using the ksys_close() wrapper allows us to get rid of in-kernel calls to the sys_close() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_close(), with one subtle difference: The few p

[PATCH 093/109] fs: add ksys_truncate() wrapper; remove in-kernel calls to sys_truncate()

2018-03-29 Thread Dominik Brodowski
Using the ksys_truncate() wrapper allows us to get rid of in-kernel calls to the sys_truncate() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_truncate(). This patch is part of a seri

Re: [PATCH v3 0/6] clocksource: rework Atmel TCB timer driver

2018-03-29 Thread Alexandre Belloni
On 29/03/2018 at 13:31:18 +0200, Alexander Dahl wrote: > Pretty sure. I rebuilt the whole BSP and added another line to the kernel > source to see if the tree I applied the patches to, was actually built: > > > diff --git a/drivers/clocksource/timer-atmel-tcb.c > b/drivers/clocksource/timer-atm

[PATCH 042/109] kernel: provide ksys_*() wrappers for syscalls called by kernel/uid16.c

2018-03-29 Thread Dominik Brodowski
Using these helpers allows us to avoid the in-kernel calls to these syscalls: sys_setregid(), sys_setgid(), sys_setreuid(), sys_setuid(), sys_setresuid(), sys_setresgid(), sys_setfsuid(), and sys_setfsgid(). The ksys_ prefix denotes that these function are meant as a drop-in replacement for the sy

[PATCH 108/109] kernel/sys_ni: remove {sys_,sys_compat} from cond_syscall definitions

2018-03-29 Thread Dominik Brodowski
This keeps it in line with the SYSCALL_DEFINEx() / COMPAT_SYSCALL_DEFINEx() calling convention. Signed-off-by: Dominik Brodowski --- Documentation/process/adding-syscalls.rst | 2 +- kernel/sys_ni.c | 433 +++--- 2 files changed, 219 insertions

[PATCH 079/109] fs: add ksys_fchmod() and do_fchmodat() helpers and ksys_chmod() wrapper; remove in-kernel calls to syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_fchmodat() helper allows us to get rid of fs-internal calls to the sys_fchmodat() syscall. Introducing the ksys_fchmod() helper and the ksys_chmod() wrapper allows us to avoid the in-kernel calls to the sys_fchmod() and sys_chmod() syscalls. The ksys_ prefix denotes that t

Re: [PATCH 1/2] net: mvneta: split rxq/txq init into SW and HW parts

2018-03-29 Thread Thomas Petazzoni
Hello, On Thu, 29 Mar 2018 18:13:56 +0800, Jisheng Zhang wrote: > This is to prepare the suspend/resume improvement in next patch. The > SW parts can be optimized out during resume. > > Signed-off-by: Jisheng Zhang Thanks, I have two very minor nits below, but otherwise: Acked-by: Thomas Petaz

[PATCH 043/109] sched: add do_sched_yield() helper; remove in-kernel call to sched_yield()

2018-03-29 Thread Dominik Brodowski
Using the sched-internal do_sched_yield() helper allows us to get rid of the sched-internal call to the sys_sched_yield() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel

[PATCH 037/109] ipc: add msgctl syscall/compat_syscall wrappers

2018-03-29 Thread Dominik Brodowski
Provide ksys_msgctl() and compat_ksys_msgctl() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_msgctl() and compat_sys_msgctl(). This p

[PATCH 081/109] fs: add do_fchownat(), ksys_fchown() helpers and ksys_{,l}chown() wrappers

2018-03-29 Thread Dominik Brodowski
Using the fs-interal do_fchownat() wrapper allows us to get rid of fs-internal calls to the sys_fchownat() syscall. Introducing the ksys_fchown() helper and the ksys_{,}chown() wrappers allows us to avoid the in-kernel calls to the sys_{,l,f}chown() syscalls. The ksys_ prefix denotes that these fu

[PATCH 087/109] fs: add ksys_lseek() helper; remove in-kernel calls to sys_lseek()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_lseek() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_lseek(). This patch is part of a series which removes in-ker

[PATCH 049/109] fs: add do_pipe2() helper; remove internal call to sys_pipe2()

2018-03-29 Thread Dominik Brodowski
Using this helper removes an in-kernel call to the sys_pipe2() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.ga17...@light.dominikbrodowski.net C

Re: [PATCH] crypto: chelsio: move chcr_ahash_continue declation out of header

2018-03-29 Thread Harsh Jain
Hi, Fix for that is already submitted in below patch. https://patchwork.kernel.org/patch/10292333/ Thanks On 28-03-2018 19:35, Arnd Bergmann wrote: > static function declarations don't belong in a header file, as shown > by this compiler warning: > > In file included from /git/arm-soc/drivers/

Re: [PATCH 2/8] PCI: Add pci_find_common_upstream_dev()

2018-03-29 Thread Christian König
Am 28.03.2018 um 21:53 schrieb Logan Gunthorpe: On 28/03/18 01:44 PM, Christian König wrote: Well, isn't that exactly what dma_map_resource() is good for? As far as I can see it makes sure IOMMU is aware of the access route and translates a CPU address into a PCI Bus address. I'm using that wit

[PATCH 065/109] fs/quota: use COMPAT_SYSCALL_DEFINE for sys32_quotactl()

2018-03-29 Thread Dominik Brodowski
While sys32_quotactl() is only needed on x86, it can use the recommended COMPAT_SYSCALL_DEFINEx() machinery for its setup. Acked-by: Jan Kara Cc: Christoph Hellwig Signed-off-by: Dominik Brodowski --- arch/x86/entry/syscalls/syscall_32.tbl | 2 +- fs/quota/compat.c | 5 +++

[PATCH 054/109] fs: add do_eventfd() helper; remove internal call to sys_eventfd()

2018-03-29 Thread Dominik Brodowski
Using this helper removes an in-kernel call to the sys_eventfd() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.ga17...@light.dominikbrodowski.net

[PATCH 012/109] net: socket: add __sys_bind() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_bind() allows us to avoid the internal calls to the sys_bind() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.g

[PATCH 034/109] ipc: add shmget syscall wrapper

2018-03-29 Thread Dominik Brodowski
Provide ksys_shmget() wrapper to avoid in-kernel calls to this syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_shmget(). This patch is part of a series which removes in-kernel calls to

[PATCH 007/109] x86: remove compat_sys_x86_waitpid()

2018-03-29 Thread Dominik Brodowski
compat_sys_x86_waitpid() is not needed, as it takes the same parameters (int, *int, int) as the native syscall. Suggested-by: Al Viro Cc: Ingo Molnar Cc: Jiri Slaby Cc: x...@kernel.org Reviewed-by: Thomas Gleixner Signed-off-by: Dominik Brodowski --- arch/x86/entry/syscalls/syscall_32.tbl |

[PATCH 102/109] kexec: move sys_kexec_load() prototype to syscalls.h

2018-03-29 Thread Dominik Brodowski
As the syscall function should only be called from the system call table but not from elsewhere in the kernel, move the prototype for sys_kexec_load() to include/syscall.h. Cc: Eric Biederman Cc: ke...@lists.infradead.org Signed-off-by: Dominik Brodowski --- include/linux/kexec.h| 4 i

[PATCH 001/109] syscalls: define and explain goal to not call syscalls in the kernel

2018-03-29 Thread Dominik Brodowski
The syscall entry points to the kernel defined by SYSCALL_DEFINEx() and COMPAT_SYSCALL_DEFINEx() should only be called from userspace through kernel entry points, but not from the kernel itself. This will allow cleanups and optimizations to the entry paths *and* to the parts of the kernel code whic

Re: [PATCH] MAINTAINERS: update entry for entry for ARM/berlin

2018-03-29 Thread Gregory CLEMENT
Hi Jisheng, On jeu., mars 29 2018, Jisheng Zhang wrote: > Change the entry name and move it to its alphabetical location. > We move to ARM/Synaptics instead of ARM/Marvell. > > This patch also updates my email address from marvell to synaptics. > > Signed-off-by: Jisheng Zhang > --- > MAINTA

[PATCH 025/109] net: socket: add __compat_sys_recvfrom() helper; remove in-kernel call to compat syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __compat_sys_recvfrom() allows us to avoid the internal calls to the compat_sys_recvfrom() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.

[PATCH 045/109] mm: add kernel_move_pages() helper, move compat syscall to mm/migrate.c

2018-03-29 Thread Dominik Brodowski
Move compat_sys_move_pages() to mm/migrate.c and make it call a newly introduced helper -- kernel_move_pages() -- instead of the syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml

[PATCH 056/109] fs: add do_vmsplice() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_vmsplice() helper allows us to get rid of the fs-internal call to the sys_vmsplice() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180

[PATCH 075/109] fs: add do_mkdirat() helper and ksys_mkdir() wrapper; remove in-kernel calls to syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_mkdirat() helper allows us to get rid of fs-internal calls to the sys_mkdirat() syscall. Introducing the ksys_mkdir() wrapper allows us to avoid the in-kernel calls to the sys_mkdir() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement fo

[PATCH 064/109] fs/quota: add kernel_quotactl() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal kernel_quotactl() helper allows us to get rid of the fs-internal call to the sys_quotactl() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/2

[PATCH 067/109] fs: add ksys_umount() helper; remove in-kernel call to sys_umount()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel call to the sys_umount() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as ksys_umount(). In the near future, the only fs-external caller o

[PATCH 062/109] inotify: add do_inotify_init() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the inotify-internal do_inotify_init() helper allows us to get rid of the in-kernel call to sys_inotify_init1() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org

[PATCH 004/109] kexec: call do_kexec_load() in compat syscall directly

2018-03-29 Thread Dominik Brodowski
do_kexec_load() can be called directly by compat_sys_kexec() as long as the same parameters checks are completed which are currently handled (also) by sys_kexec(). Therefore, move those to kexec_load_check(), call that newly introduced helper function from both sys_kexec() and compat_sys_kexec(), a

[PATCH 027/109] net: socket: add __compat_sys_getsockopt() helper; remove in-kernel call to compat syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __compat_sys_getsockopt() allows us to avoid the internal calls to the compat_sys_getsockopt() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.ker

[PATCH 005/109] mm: use do_futex() instead of sys_futex() in mm_release()

2018-03-29 Thread Dominik Brodowski
sys_futex() is a wrapper to do_futex() which does not modify any values here: - uaddr, val and val3 are kept the same - op is masked with FUTEX_CMD_MASK, but is always set to FUTEX_WAKE. Therefore, val2 is always 0. - as utime is set to NULL, *timeout is NULL This patch is part of a series wh

[PATCH 039/109] ipc: add msgsnd syscall/compat_syscall wrappers

2018-03-29 Thread Dominik Brodowski
Provide ksys_msgsnd() and compat_ksys_msgsnd() wrappers to avoid in-kernel calls to these syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_msgsnd() and compat_sys_msgsnd(). This p

[PATCH 047/109] mm: add kernel_[sg]et_mempolicy() helpers; remove in-kernel calls to syscalls

2018-03-29 Thread Dominik Brodowski
Using the mm-internal kernel_[sg]et_mempolicy() helper allows us to get rid of the mm-internal calls to the sys_[sg]et_mempolicy() syscalls. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://l

[PATCH 077/109] fs: add do_mknodat() helper and ksys_mknod() wrapper; remove in-kernel calls to syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_mknodat() helper allows us to get rid of fs-internal calls to the sys_mknodat() syscall. Introducing the ksys_mknod() wrapper allows us to avoid the in-kernel calls to sys_mknod() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for th

[PATCH 095/109] fs: add ksys_fallocate() wrapper; remove in-kernel calls to sys_fallocate()

2018-03-29 Thread Dominik Brodowski
Using the ksys_fallocate() wrapper allows us to get rid of in-kernel calls to the sys_fallocate() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_fallocate(). This patch is part of a s

[PATCH 089/109] fs: add ksys_sync() helper; remove in-kernel calls to sys_sync()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_sync() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_sync(). This patch is part of a series which removes in-kerne

[PATCH 058/109] fs: add do_compat_fcntl64() helper; remove in-kernel call to compat syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_compat_fcntl64() helper allows us to get rid of the fs-internal call to the compat_sys_fcntl64() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel

[PATCH 006/109] x86: use _do_fork() in compat_sys_x86_clone()

2018-03-29 Thread Dominik Brodowski
It is trivial to directly call _do_fork() instead of the sys_clone() syscall in compat_sys_x86_clone(). This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.ga17.

Re: [PATCH v5 12/16] openrisc: Switch to generic free_initrd_mem.

2018-03-29 Thread Stafford Horne
On Thu, Mar 29, 2018 at 07:32:03AM -0400, Shea Levy wrote: > The generic implementation is functionally identical. > > Signed-off-by: Shea Levy Acked-by: Stafford Horne > --- > arch/openrisc/mm/init.c | 7 --- > 1 file changed, 7 deletions(-) > > diff --git a/arch/openrisc/mm/init.c b/ar

Re: [PATCH v2 2/2] media: Add a driver for the ov7251 camera sensor

2018-03-29 Thread Sakari Ailus
Hi Todor, Thanks for the patch. A few quick comments below... On Fri, Mar 23, 2018 at 12:14:20PM +0800, Todor Tomov wrote: > The ov7251 sensor is a 1/7.5-Inch B&W VGA (640x480) CMOS Digital Image > Sensor from Omnivision. > > The driver supports the following modes: > - 640x480 30fps > - 640x480

[PATCH] jffs2: safely remove obsolete dirent from the f->dents list

2018-03-29 Thread Yufen Yu
We may delete a bunch of directory entries, operating such as: getdents(), unlink(), getdents()..., until the end of the directory. jffs2 handles f_pos on the directory merely as the position on the f->dents list. So, the next getdents() may skip some entries before f_pos, if we remove some entries

[PATCH 063/109] fanotify: add do_fanotify_mark() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_fanotify_mark() helper allows us to get rid of the fs-internal call to the sys_fanotify_mark() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.o

[PATCH 010/109] net: socket: add __sys_accept4() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_accept4() allows us to avoid the internal calls to the sys_accept4() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/2018032516

[PATCH 085/109] fs: add ksys_getdents64() helper; remove in-kernel calls to sys_getdents64()

2018-03-29 Thread Dominik Brodowski
Using this helper allows us to avoid the in-kernel calls to the sys_getdents64() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_getdents64(). This patch is part of a series which remo

[PATCH 015/109] net: socket: add __sys_getsockname() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_getsockname() allows us to avoid the internal calls to the sys_getsockname() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20

[PATCH 021/109] net: socket: add do_sys_recvmmsg() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper do_sys_recvmmsg() allows us to avoid the internal calls to the sys_getsockopt() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180

[PATCH 059/109] fs: add do_compat_select() helper; remove in-kernel call to compat syscall

2018-03-29 Thread Dominik Brodowski
Using the fs-internal do_compat_select() helper allows us to get rid of the fs-internal call to the compat_sys_select() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.o

[PATCH 046/109] mm: add kernel_mbind() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the mm-internal kernel_mbind() helper allows us to get rid of the mm-internal call to the sys_mbind() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/2018032

[PATCH 019/109] net: socket: add __sys_setsockopt() helper; remove in-kernel call to syscall

2018-03-29 Thread Dominik Brodowski
Using the net-internal helper __sys_setsockopt() allows us to avoid the internal calls to the sys_setsockopt() syscall. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/2018

<    1   2   3   4   5   6   7   8   9   10   >