Re: [PATCH V3 2/5] mm: mlock: Add new mlock, munlock, and munlockall system calls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
- Subject: Re: [PATCH V3 2/5] mm: mlock: Add new mlock, munlock, and munlockall system calls
- From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
- Date: Wed, 8 Jul 2015 09:02:25 +0200
- Cc: Eric B Munson <emunson@xxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Michal Hocko <mhocko@xxxxxxx>, Vlastimil Babka <vbabka@xxxxxxx>, alpha <linux-alpha@xxxxxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "linux-arm-kernel@xxxxxxxxxxxxxxxxxxx" <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, "adi-buildroot-devel@xxxxxxxxxxxxxxxxxxxxx" <adi-buildroot-devel@xxxxxxxxxxxxxxxxxxxxx>, Cris <linux-cris-kernel@xxxxxxxx>, "linux-ia64@xxxxxxxxxxxxxxx" <linux-ia64@xxxxxxxxxxxxxxx>, linux-m68k <linux-m68k@xxxxxxxxxxxxxxx>, Linux MIPS Mailing List <linux-mips@xxxxxxxxxxxxxx>, "moderated list:PANASONIC MN10300..." <linux-am33-list@xxxxxxxxxx>, Parisc List <linux-parisc@xxxxxxxxxxxxxxx>, "linuxppc-dev@xxxxxxxxxxxxxxxx" <linuxppc-dev@xxxxxxxxxxxxxxxx>, linux-s390 <linux-s390@xxxxxxxxxxxxxxx>, Linux-sh list <linux-sh@xxxxxxxxxxxxxxx>, sparclinux <sparclinux@xxxxxxxxxxxxxxx>, "linux-xtensa@xxxxxxxxxxxxxxxx" <linux-xtensa@xxxxxxxxxxxxxxxx>, "linux-api@xxxxxxxxxxxxxxx" <linux-api@xxxxxxxxxxxxxxx>, Linux-Arch <linux-arch@xxxxxxxxxxxxxxx>, Linux MM <linux-mm@xxxxxxxxx>
- In-reply-to: <20150708064607.GB7079@osiris>
- List-id: <linux-ia64.vger.kernel.org>
- References: <1436288623-13007-1-git-send-email-emunson@akamai.com> <1436288623-13007-3-git-send-email-emunson@akamai.com> <20150708064607.GB7079@osiris>
On Wed, Jul 8, 2015 at 8:46 AM, Heiko Carstens
<heiko.carstens@xxxxxxxxxx> wrote:
>> diff --git a/arch/s390/kernel/syscalls.S b/arch/s390/kernel/syscalls.S
>> index 1acad02..f6d81d6 100644
>> --- a/arch/s390/kernel/syscalls.S
>> +++ b/arch/s390/kernel/syscalls.S
>> @@ -363,3 +363,6 @@ SYSCALL(sys_bpf,compat_sys_bpf)
>> SYSCALL(sys_s390_pci_mmio_write,compat_sys_s390_pci_mmio_write)
>> SYSCALL(sys_s390_pci_mmio_read,compat_sys_s390_pci_mmio_read)
>> SYSCALL(sys_execveat,compat_sys_execveat)
>> +SYSCALL(sys_mlock2,compat_sys_mlock2) /* 355 */
>> +SYSCALL(sys_munlock2,compat_sys_munlock2)
>> +SYSCALL(sys_munlockall2,compat_sys_munlockall2)
>
> FWIW, you would also need to add matching lines to the two files
>
> arch/s390/include/uapi/asm/unistd.h
> arch/s390/kernel/compat_wrapper.c
>
> so that the system call would be wired up on s390.
Similar comment for m68k:
arch/m68k/include/asm/unistd.h
arch/m68k/include/uapi/asm/unistd.h
I think you best look at the last commits that added system calls, for all
architectures, to make sure you don't do partial updates.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]