Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
On Tue, Jun 20, 2017 at 4:54 PM, Yury Norovwrote: > On Tue, Jun 20, 2017 at 04:20:43PM +0200, Arnd Bergmann wrote: >> On Tue, Jun 20, 2017 at 3:37 PM, Yury Norov >> wrote: >> > On Mon, Jun 19, 2017 at 11:10:23PM +0100, James Hogan wrote: >> >> On Mon, Jun 19, 2017 at 11:58:41PM +0200, Arnd Bergmann wrote: >> > I would also notice riscv people and welcome to the discussion. >> > >> > As there is more than 1 arch that goes to be added to linux soon, >> > maybe it's better to upstream my ans James' patches separately >> > from other ilp32 patches? Arnd? >> >> Do you mean upstream those two patches slightly later? That's >> fine with me, I don't care much whether the old new stat is part >> of the syscall table for arm64-ilp32 or not, I'd leave that up to >> you, depending on whether you want to do the rework or not. > > I mean that if we want to deprecate rlimit and stat syscalls for > architectures that are under development now, it's better to upstream > patches that actually deprecate it as early as possible. Makes sense. >> I suppose the arm64-ilp32 could benefit from not having to support >> the old arm32 stat structure, but doing the new syscalls based on >> statx could delay the glibc port some more, as there are some open >> questions about how that would best be integrated. > > OK. Let's leave things as is. But then I don't see any reason to > add unxstat patch to ilp32 series if ilp32 will not disable it. Right, that's what I meant: let's leave the rlimit patch in your series as it matches the work you have already done, and is the right thing to do, and let's do the unxstat patch separately so it doesn't cause you extra work. Arnd ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
On Tue, Jun 20, 2017 at 04:20:43PM +0200, Arnd Bergmann wrote: > On Tue, Jun 20, 2017 at 3:37 PM, Yury Norovwrote: > > On Mon, Jun 19, 2017 at 11:10:23PM +0100, James Hogan wrote: > >> On Mon, Jun 19, 2017 at 11:58:41PM +0200, Arnd Bergmann wrote: > >> > On Mon, Jun 19, 2017 at 11:42 PM, James Hogan > >> > wrote: > >> > > On Mon, Jun 19, 2017 at 06:49:46PM +0300, Yury Norov wrote: > >> > > Subject: [PATCH] Deprecate stat syscalls superseded by statx > >> > > > >> > > Various stat system calls can now be implemented as userland wrappers > >> > > around the new statx system call, so allow them to be removed from the > >> > > kernel by default for new architectures / ABIs. > >> > > > >> > > This involves adding __ARCH_WANT_SYSCALL_UNXSTAT to each existing > >> > > architecture, which enables the relevant stat system calls in the > >> > > generic system call list (if used). It also conditionally defines the > >> > > syscalls in fs/stat.c and struct stat / struct stat64 in > >> > > asm-generic/stat.h. > >> > > > >> > > Signed-off-by: James Hogan > >> > > Cc: David Howells > >> > > Cc: Alexander Viro > >> > > Cc: Arnd Bergmann > >> > > Cc: linux-fsde...@vger.kernel.org > >> > > Cc: linux-a...@vger.kernel.org > >> > > Cc: linux-...@vger.kernel.org > >> > > Cc: linux-ker...@vger.kernel.org > >> > > >> > Good idea: > >> > > >> > Acked-by: Arnd Bergmann > >> > > +/* statx deprecates the un-extended stat syscalls which use struct > >> > > stat[64] */ > >> > > +#ifdef __ARCH_WANT_SYSCALL_UNXSTAT > >> > > >> > I'm glad you explain what 'UNXSTAT' means here, since I would not > >> > have otherwise guessed it, but I also can't think of anything more > >> > intuitive. > >> > >> Yeh, I renamed that several times while playing around with this :-). > >> > >> The stat syscalls remind me a bit of the Vicar of Dibley episode where > >> the new road named "New Road" necessitates the renaming of the existing > >> "New Road" to "Quite Old Road" and "Quite Old Road" to "Really Quite Old > >> Road" and "Old Road" to "Very Old Road"! > > > > (Add Palmer Dabbelt ) > > > > The stat syscalls are full of hacks, and we have to pull that hacks > > even to new architectures to deal with stat. So I'll be happy to drop > > it in arm64/ilp32. But it means that I need some time to integrate > > your patch and fix glibc accordingly. And it also means that we need > > round 9 for ilp32... :( > > > > Arnd, once before you told that generic unistd has some duplications > > and legacy syscalls, and one day we'll have to deal with it. Do you > > have the list or something on it? > > No, I'd have to do some research for that. > > > I would also notice riscv people and welcome to the discussion. > > > > As there is more than 1 arch that goes to be added to linux soon, > > maybe it's better to upstream my ans James' patches separately > > from other ilp32 patches? Arnd? > > Do you mean upstream those two patches slightly later? That's > fine with me, I don't care much whether the old new stat is part > of the syscall table for arm64-ilp32 or not, I'd leave that up to > you, depending on whether you want to do the rework or not. I mean that if we want to deprecate rlimit and stat syscalls for architectures that are under development now, it's better to upstream patches that actually deprecate it as early as possible. > I suppose the arm64-ilp32 could benefit from not having to support > the old arm32 stat structure, but doing the new syscalls based on > statx could delay the glibc port some more, as there are some open > questions about how that would best be integrated. OK. Let's leave things as is. But then I don't see any reason to add unxstat patch to ilp32 series if ilp32 will not disable it. Yury ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
On Tue, Jun 20, 2017 at 3:37 PM, Yury Norovwrote: > On Mon, Jun 19, 2017 at 11:10:23PM +0100, James Hogan wrote: >> On Mon, Jun 19, 2017 at 11:58:41PM +0200, Arnd Bergmann wrote: >> > On Mon, Jun 19, 2017 at 11:42 PM, James Hogan >> > wrote: >> > > On Mon, Jun 19, 2017 at 06:49:46PM +0300, Yury Norov wrote: >> > > Subject: [PATCH] Deprecate stat syscalls superseded by statx >> > > >> > > Various stat system calls can now be implemented as userland wrappers >> > > around the new statx system call, so allow them to be removed from the >> > > kernel by default for new architectures / ABIs. >> > > >> > > This involves adding __ARCH_WANT_SYSCALL_UNXSTAT to each existing >> > > architecture, which enables the relevant stat system calls in the >> > > generic system call list (if used). It also conditionally defines the >> > > syscalls in fs/stat.c and struct stat / struct stat64 in >> > > asm-generic/stat.h. >> > > >> > > Signed-off-by: James Hogan >> > > Cc: David Howells >> > > Cc: Alexander Viro >> > > Cc: Arnd Bergmann >> > > Cc: linux-fsde...@vger.kernel.org >> > > Cc: linux-a...@vger.kernel.org >> > > Cc: linux-...@vger.kernel.org >> > > Cc: linux-ker...@vger.kernel.org >> > >> > Good idea: >> > >> > Acked-by: Arnd Bergmann >> > > +/* statx deprecates the un-extended stat syscalls which use struct >> > > stat[64] */ >> > > +#ifdef __ARCH_WANT_SYSCALL_UNXSTAT >> > >> > I'm glad you explain what 'UNXSTAT' means here, since I would not >> > have otherwise guessed it, but I also can't think of anything more >> > intuitive. >> >> Yeh, I renamed that several times while playing around with this :-). >> >> The stat syscalls remind me a bit of the Vicar of Dibley episode where >> the new road named "New Road" necessitates the renaming of the existing >> "New Road" to "Quite Old Road" and "Quite Old Road" to "Really Quite Old >> Road" and "Old Road" to "Very Old Road"! > > (Add Palmer Dabbelt ) > > The stat syscalls are full of hacks, and we have to pull that hacks > even to new architectures to deal with stat. So I'll be happy to drop > it in arm64/ilp32. But it means that I need some time to integrate > your patch and fix glibc accordingly. And it also means that we need > round 9 for ilp32... :( > > Arnd, once before you told that generic unistd has some duplications > and legacy syscalls, and one day we'll have to deal with it. Do you > have the list or something on it? No, I'd have to do some research for that. > I would also notice riscv people and welcome to the discussion. > > As there is more than 1 arch that goes to be added to linux soon, > maybe it's better to upstream my ans James' patches separately > from other ilp32 patches? Arnd? Do you mean upstream those two patches slightly later? That's fine with me, I don't care much whether the old new stat is part of the syscall table for arm64-ilp32 or not, I'd leave that up to you, depending on whether you want to do the rework or not. I suppose the arm64-ilp32 could benefit from not having to support the old arm32 stat structure, but doing the new syscalls based on statx could delay the glibc port some more, as there are some open questions about how that would best be integrated. Arnd ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
On Mon, Jun 19, 2017 at 11:10:23PM +0100, James Hogan wrote: > On Mon, Jun 19, 2017 at 11:58:41PM +0200, Arnd Bergmann wrote: > > On Mon, Jun 19, 2017 at 11:42 PM, James Hogan> > wrote: > > > On Mon, Jun 19, 2017 at 06:49:46PM +0300, Yury Norov wrote: > > > Subject: [PATCH] Deprecate stat syscalls superseded by statx > > > > > > Various stat system calls can now be implemented as userland wrappers > > > around the new statx system call, so allow them to be removed from the > > > kernel by default for new architectures / ABIs. > > > > > > This involves adding __ARCH_WANT_SYSCALL_UNXSTAT to each existing > > > architecture, which enables the relevant stat system calls in the > > > generic system call list (if used). It also conditionally defines the > > > syscalls in fs/stat.c and struct stat / struct stat64 in > > > asm-generic/stat.h. > > > > > > Signed-off-by: James Hogan > > > Cc: David Howells > > > Cc: Alexander Viro > > > Cc: Arnd Bergmann > > > Cc: linux-fsde...@vger.kernel.org > > > Cc: linux-a...@vger.kernel.org > > > Cc: linux-...@vger.kernel.org > > > Cc: linux-ker...@vger.kernel.org > > > > Good idea: > > > > Acked-by: Arnd Bergmann > > Thanks, > > > > > > +/* statx deprecates the un-extended stat syscalls which use struct > > > stat[64] */ > > > +#ifdef __ARCH_WANT_SYSCALL_UNXSTAT > > > > I'm glad you explain what 'UNXSTAT' means here, since I would not > > have otherwise guessed it, but I also can't think of anything more > > intuitive. > > Yeh, I renamed that several times while playing around with this :-). > > The stat syscalls remind me a bit of the Vicar of Dibley episode where > the new road named "New Road" necessitates the renaming of the existing > "New Road" to "Quite Old Road" and "Quite Old Road" to "Really Quite Old > Road" and "Old Road" to "Very Old Road"! > > Cheers > James (Add Palmer Dabbelt ) The stat syscalls are full of hacks, and we have to pull that hacks even to new architectures to deal with stat. So I'll be happy to drop it in arm64/ilp32. But it means that I need some time to integrate your patch and fix glibc accordingly. And it also means that we need round 9 for ilp32... :( Arnd, once before you told that generic unistd has some duplications and legacy syscalls, and one day we'll have to deal with it. Do you have the list or something on it? I would also notice riscv people and welcome to the discussion. As there is more than 1 arch that goes to be added to linux soon, maybe it's better to upstream my ans James' patches separately from other ilp32 patches? Arnd? Yury ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
On Mon, Jun 19, 2017 at 11:10:23PM +0100, James Hogan wrote: > On Mon, Jun 19, 2017 at 11:58:41PM +0200, Arnd Bergmann wrote: > > On Mon, Jun 19, 2017 at 11:42 PM, James Hogan> > wrote: > > > On Mon, Jun 19, 2017 at 06:49:46PM +0300, Yury Norov wrote: > > > Subject: [PATCH] Deprecate stat syscalls superseded by statx > > > > > > Various stat system calls can now be implemented as userland wrappers > > > around the new statx system call, so allow them to be removed from the > > > kernel by default for new architectures / ABIs. > > > > > > This involves adding __ARCH_WANT_SYSCALL_UNXSTAT to each existing > > > architecture, which enables the relevant stat system calls in the > > > generic system call list (if used). It also conditionally defines the > > > syscalls in fs/stat.c and struct stat / struct stat64 in > > > asm-generic/stat.h. > > > > > > Signed-off-by: James Hogan > > > Cc: David Howells > > > Cc: Alexander Viro > > > Cc: Arnd Bergmann > > > Cc: linux-fsde...@vger.kernel.org > > > Cc: linux-a...@vger.kernel.org > > > Cc: linux-...@vger.kernel.org > > > Cc: linux-ker...@vger.kernel.org > > > > Good idea: > > > > Acked-by: Arnd Bergmann > > Thanks, > > > > > > +/* statx deprecates the un-extended stat syscalls which use struct > > > stat[64] */ > > > +#ifdef __ARCH_WANT_SYSCALL_UNXSTAT > > > > I'm glad you explain what 'UNXSTAT' means here, since I would not > > have otherwise guessed it, but I also can't think of anything more > > intuitive. > > Yeh, I renamed that several times while playing around with this :-). > > The stat syscalls remind me a bit of the Vicar of Dibley episode where > the new road named "New Road" necessitates the renaming of the existing > "New Road" to "Quite Old Road" and "Quite Old Road" to "Really Quite Old > Road" and "Old Road" to "Very Old Road"! > > Cheers > James (Add Palmer Dabbelt ) The stat syscalls are full of hacks, and we have to pull that hacks even to new architectures to deal with stat. So I'll be happy to drop it in arm64/ilp32. But it means that I need some time to integrate your patch and fix glibc accordingly. And it also means that we need round 9 for ilp32... :( Arnd, once before you told that generic unistd has some duplications and legacy syscalls, and one day we'll have to deal with it. Do you have the list or something on it? I would also notice riscv people and welcome to the discussion. As there is more than 1 arch that goes to be added to linux soon, maybe it's better to upstream my ans James' patches separately from other ilp32 patches? Arnd? Yury ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
On Mon, Jun 19, 2017 at 11:58:41PM +0200, Arnd Bergmann wrote: > On Mon, Jun 19, 2017 at 11:42 PM, James Hoganwrote: > > On Mon, Jun 19, 2017 at 06:49:46PM +0300, Yury Norov wrote: > > Subject: [PATCH] Deprecate stat syscalls superseded by statx > > > > Various stat system calls can now be implemented as userland wrappers > > around the new statx system call, so allow them to be removed from the > > kernel by default for new architectures / ABIs. > > > > This involves adding __ARCH_WANT_SYSCALL_UNXSTAT to each existing > > architecture, which enables the relevant stat system calls in the > > generic system call list (if used). It also conditionally defines the > > syscalls in fs/stat.c and struct stat / struct stat64 in > > asm-generic/stat.h. > > > > Signed-off-by: James Hogan > > Cc: David Howells > > Cc: Alexander Viro > > Cc: Arnd Bergmann > > Cc: linux-fsde...@vger.kernel.org > > Cc: linux-a...@vger.kernel.org > > Cc: linux-...@vger.kernel.org > > Cc: linux-ker...@vger.kernel.org > > Good idea: > > Acked-by: Arnd Bergmann Thanks, > > > +/* statx deprecates the un-extended stat syscalls which use struct > > stat[64] */ > > +#ifdef __ARCH_WANT_SYSCALL_UNXSTAT > > I'm glad you explain what 'UNXSTAT' means here, since I would not > have otherwise guessed it, but I also can't think of anything more > intuitive. Yeh, I renamed that several times while playing around with this :-). The stat syscalls remind me a bit of the Vicar of Dibley episode where the new road named "New Road" necessitates the renaming of the existing "New Road" to "Quite Old Road" and "Quite Old Road" to "Really Quite Old Road" and "Old Road" to "Very Old Road"! Cheers James signature.asc Description: Digital signature ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
On Mon, Jun 19, 2017 at 11:42 PM, James Hoganwrote: > Hi Yury, > > On Mon, Jun 19, 2017 at 06:49:46PM +0300, Yury Norov wrote: >> The newer prlimit64 syscall provides all the functionality provided by >> the getrlimit and setrlimit syscalls and adds the pid of target process, >> so future architectures won't need to include getrlimit and setrlimit. >> >> Therefore drop getrlimit and setrlimit syscalls from the generic syscall >> list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's >> unistd.h prior to including asm-generic/unistd.h, and adjust all >> architectures >> using the generic syscall list to define it so that no in-tree architectures >> are affected. > > I have a similar experimental patch lying around for the stat system > calls which are superseded by statx (see below). If it looks acceptable > maybe you'd like to incorporate it (or something similar) into your > series. > > Cheers > James > > --- > From: James Hogan > Date: Fri, 2 Jun 2017 13:07:27 +0100 > Subject: [PATCH] Deprecate stat syscalls superseded by statx > > Various stat system calls can now be implemented as userland wrappers > around the new statx system call, so allow them to be removed from the > kernel by default for new architectures / ABIs. > > This involves adding __ARCH_WANT_SYSCALL_UNXSTAT to each existing > architecture, which enables the relevant stat system calls in the > generic system call list (if used). It also conditionally defines the > syscalls in fs/stat.c and struct stat / struct stat64 in > asm-generic/stat.h. > > Signed-off-by: James Hogan > Cc: David Howells > Cc: Alexander Viro > Cc: Arnd Bergmann > Cc: linux-fsde...@vger.kernel.org > Cc: linux-a...@vger.kernel.org > Cc: linux-...@vger.kernel.org > Cc: linux-ker...@vger.kernel.org Good idea: Acked-by: Arnd Bergmann > +/* statx deprecates the un-extended stat syscalls which use struct stat[64] > */ > +#ifdef __ARCH_WANT_SYSCALL_UNXSTAT I'm glad you explain what 'UNXSTAT' means here, since I would not have otherwise guessed it, but I also can't think of anything more intuitive. Arnd ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
Hi Yury, On Mon, Jun 19, 2017 at 06:49:46PM +0300, Yury Norov wrote: > The newer prlimit64 syscall provides all the functionality provided by > the getrlimit and setrlimit syscalls and adds the pid of target process, > so future architectures won't need to include getrlimit and setrlimit. > > Therefore drop getrlimit and setrlimit syscalls from the generic syscall > list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's > unistd.h prior to including asm-generic/unistd.h, and adjust all architectures > using the generic syscall list to define it so that no in-tree architectures > are affected. I have a similar experimental patch lying around for the stat system calls which are superseded by statx (see below). If it looks acceptable maybe you'd like to incorporate it (or something similar) into your series. Cheers James --- From: James HoganDate: Fri, 2 Jun 2017 13:07:27 +0100 Subject: [PATCH] Deprecate stat syscalls superseded by statx Various stat system calls can now be implemented as userland wrappers around the new statx system call, so allow them to be removed from the kernel by default for new architectures / ABIs. This involves adding __ARCH_WANT_SYSCALL_UNXSTAT to each existing architecture, which enables the relevant stat system calls in the generic system call list (if used). It also conditionally defines the syscalls in fs/stat.c and struct stat / struct stat64 in asm-generic/stat.h. Signed-off-by: James Hogan Cc: David Howells Cc: Alexander Viro Cc: Arnd Bergmann Cc: linux-fsde...@vger.kernel.org Cc: linux-a...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: linux-ker...@vger.kernel.org --- arch/alpha/include/asm/unistd.h | 1 + arch/arc/include/uapi/asm/unistd.h | 1 + arch/arm/include/asm/unistd.h| 1 + arch/arm64/include/uapi/asm/unistd.h | 1 + arch/blackfin/include/asm/unistd.h | 1 + arch/c6x/include/uapi/asm/unistd.h | 1 + arch/cris/include/asm/unistd.h | 1 + arch/frv/include/asm/unistd.h| 1 + arch/h8300/include/uapi/asm/unistd.h | 1 + arch/hexagon/include/uapi/asm/unistd.h | 1 + arch/ia64/include/asm/unistd.h | 2 ++ arch/m32r/include/asm/unistd.h | 1 + arch/m68k/include/asm/unistd.h | 1 + arch/metag/include/uapi/asm/unistd.h | 1 + arch/microblaze/include/asm/unistd.h | 1 + arch/mips/include/asm/unistd.h | 1 + arch/mn10300/include/asm/unistd.h| 1 + arch/nios2/include/uapi/asm/unistd.h | 1 + arch/openrisc/include/uapi/asm/unistd.h | 1 + arch/parisc/include/asm/unistd.h | 1 + arch/powerpc/include/asm/unistd.h| 1 + arch/s390/include/asm/unistd.h | 1 + arch/score/include/uapi/asm/unistd.h | 1 + arch/sh/include/asm/unistd.h | 1 + arch/sparc/include/asm/unistd.h | 1 + arch/tile/include/uapi/asm/unistd.h | 1 + arch/unicore32/include/uapi/asm/unistd.h | 1 + arch/x86/include/asm/unistd.h| 2 ++ arch/xtensa/include/asm/unistd.h | 1 + fs/stat.c| 4 include/asm-generic/unistd.h | 2 ++ include/uapi/asm-generic/stat.h | 7 +++ include/uapi/asm-generic/unistd.h| 6 ++ scripts/checksyscalls.sh | 9 + 34 files changed, 59 insertions(+) diff --git a/arch/alpha/include/asm/unistd.h b/arch/alpha/include/asm/unistd.h index a56e608db2f9..5ad9d35b1bfb 100644 --- a/arch/alpha/include/asm/unistd.h +++ b/arch/alpha/include/asm/unistd.h @@ -7,6 +7,7 @@ #define __ARCH_WANT_OLD_READDIR #define __ARCH_WANT_STAT64 +#define __ARCH_WANT_SYSCALL_UNXSTAT #define __ARCH_WANT_SYS_GETHOSTNAME #define __ARCH_WANT_SYS_FADVISE64 #define __ARCH_WANT_SYS_GETPGRP diff --git a/arch/arc/include/uapi/asm/unistd.h b/arch/arc/include/uapi/asm/unistd.h index ac6496527ad6..e68bdb8c6f58 100644 --- a/arch/arc/include/uapi/asm/unistd.h +++ b/arch/arc/include/uapi/asm/unistd.h @@ -17,6 +17,7 @@ #define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_SET_GET_RLIMIT +#define __ARCH_WANT_SYSCALL_UNXSTAT #define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index 076090d2dbf5..68bc0b5e58a4 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h @@ -17,6 +17,7 @@ #include #define __ARCH_WANT_STAT64 +#define __ARCH_WANT_SYSCALL_UNXSTAT #define __ARCH_WANT_SYS_GETHOSTNAME #define __ARCH_WANT_SYS_PAUSE #define __ARCH_WANT_SYS_GETPGRP diff --git a/arch/arm64/include/uapi/asm/unistd.h b/arch/arm64/include/uapi/asm/unistd.h index 48355a683e25..d066041b53e7 100644 --- a/arch/arm64/include/uapi/asm/unistd.h +++ b/arch/arm64/include/uapi/asm/unistd.h @@ -16,5 +16,6 @@ #define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_SET_GET_RLIMIT
[PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
The newer prlimit64 syscall provides all the functionality provided by the getrlimit and setrlimit syscalls and adds the pid of target process, so future architectures won't need to include getrlimit and setrlimit. Therefore drop getrlimit and setrlimit syscalls from the generic syscall list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's unistd.h prior to including asm-generic/unistd.h, and adjust all architectures using the generic syscall list to define it so that no in-tree architectures are affected. Cc: Arnd BergmannCc: James Hogan Cc: linux-a...@vger.kernel.org Cc: linux-snps-arc@lists.infradead.org Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-...@linux-c6x.org Cc: Richard Kuo Cc: linux-hexa...@vger.kernel.org Cc: linux-me...@vger.kernel.org Cc: Jonas Bonn Cc: li...@lists.openrisc.net Cc: Chen Liqin Cc: Lennox Wu Cc: Chris Metcalf Cc: Guan Xuetao Cc: Ley Foon Tan Cc: nios2-...@lists.rocketboards.org Cc: Yoshinori Sato Cc: uclinux-h8-de...@lists.sourceforge.jp Signed-off-by: Yury Norov Acked-by: Arnd Bergmann Acked-by: Mark Salter [c6x] Acked-by: James Hogan [metag] Acked-by: Ley Foon Tan [nios2] Acked-by: Stafford Horne [openrisc] Acked-by: Will Deacon [arm64] Acked-by: Vineet Gupta #arch/arc bits --- arch/arc/include/uapi/asm/unistd.h | 1 + arch/arm64/include/uapi/asm/unistd.h | 1 + arch/c6x/include/uapi/asm/unistd.h | 1 + arch/h8300/include/uapi/asm/unistd.h | 1 + arch/hexagon/include/uapi/asm/unistd.h | 1 + arch/metag/include/uapi/asm/unistd.h | 1 + arch/nios2/include/uapi/asm/unistd.h | 1 + arch/openrisc/include/uapi/asm/unistd.h | 1 + arch/score/include/uapi/asm/unistd.h | 1 + arch/tile/include/uapi/asm/unistd.h | 1 + arch/unicore32/include/uapi/asm/unistd.h | 1 + include/uapi/asm-generic/unistd.h| 5 + scripts/checksyscalls.sh | 5 + 13 files changed, 21 insertions(+) diff --git a/arch/arc/include/uapi/asm/unistd.h b/arch/arc/include/uapi/asm/unistd.h index 9a34136d84b2..ac6496527ad6 100644 --- a/arch/arc/include/uapi/asm/unistd.h +++ b/arch/arc/include/uapi/asm/unistd.h @@ -16,6 +16,7 @@ #define _UAPI_ASM_ARC_UNISTD_H #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK diff --git a/arch/arm64/include/uapi/asm/unistd.h b/arch/arm64/include/uapi/asm/unistd.h index 043d17a21342..48355a683e25 100644 --- a/arch/arm64/include/uapi/asm/unistd.h +++ b/arch/arm64/include/uapi/asm/unistd.h @@ -15,5 +15,6 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #include diff --git a/arch/c6x/include/uapi/asm/unistd.h b/arch/c6x/include/uapi/asm/unistd.h index 12d73d9d81f5..f67623137853 100644 --- a/arch/c6x/include/uapi/asm/unistd.h +++ b/arch/c6x/include/uapi/asm/unistd.h @@ -15,6 +15,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_CLONE /* Use the standard ABI for syscalls. */ diff --git a/arch/h8300/include/uapi/asm/unistd.h b/arch/h8300/include/uapi/asm/unistd.h index 7dd20ef7625a..2f98394b77d4 100644 --- a/arch/h8300/include/uapi/asm/unistd.h +++ b/arch/h8300/include/uapi/asm/unistd.h @@ -1,5 +1,6 @@ #define __ARCH_NOMMU #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #include diff --git a/arch/hexagon/include/uapi/asm/unistd.h b/arch/hexagon/include/uapi/asm/unistd.h index 21517600432b..52d585c5cdb2 100644 --- a/arch/hexagon/include/uapi/asm/unistd.h +++ b/arch/hexagon/include/uapi/asm/unistd.h @@ -28,6 +28,7 @@ #define sys_mmap2 sys_mmap_pgoff #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK diff --git a/arch/metag/include/uapi/asm/unistd.h b/arch/metag/include/uapi/asm/unistd.h index 459b6ec15848..16b5cb32ec21 100644 --- a/arch/metag/include/uapi/asm/unistd.h +++ b/arch/metag/include/uapi/asm/unistd.h @@ -8,6 +8,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT /* Use the standard ABI for syscalls. */ #include diff --git a/arch/nios2/include/uapi/asm/unistd.h b/arch/nios2/include/uapi/asm/unistd.h index 51a32c71ce2b..b0dda4de2bc7 100644 --- a/arch/nios2/include/uapi/asm/unistd.h +++ b/arch/nios2/include/uapi/asm/unistd.h @@ -18,6 +18,7 @@ #define sys_mmap2
Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
On Mon, Jun 05, 2017 at 03:44:06PM +0100, James Hogan wrote: > Hi Yury, > > On Sun, Jun 04, 2017 at 02:59:52PM +0300, Yury Norov wrote: > > The newer prlimit64 syscall provides all the functionality provided by > > the getrlimit and setrlimit syscalls and adds the pid of target process, > > so future architectures won't need to include getrlimit and setrlimit. > > > > Therefore drop getrlimit and setrlimit syscalls from the generic syscall > > list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's > > unistd.h prior to including asm-generic/unistd.h, and adjust all > > architectures > > using the generic syscall list to define it so that no in-tree architectures > > are affected. > > > > Cc: Arnd Bergmann> > Cc: James Hogan > > Cc: linux-a...@vger.kernel.org > > Cc: linux-snps-arc@lists.infradead.org > > Cc: Catalin Marinas > > Cc: Will Deacon > > Cc: linux-arm-ker...@lists.infradead.org > > Cc: Mark Salter > > Cc: Aurelien Jacquiot > > Cc: linux-c6x-...@linux-c6x.org > > Cc: Richard Kuo > > Cc: linux-hexa...@vger.kernel.org > > Cc: linux-me...@vger.kernel.org > > Cc: Jonas Bonn > > Cc: li...@lists.openrisc.net > > Cc: Chen Liqin > > Cc: Lennox Wu > > Cc: Chris Metcalf > > Cc: Guan Xuetao > > Cc: Ley Foon Tan > > Cc: nios2-...@lists.rocketboards.org > > Cc: Yoshinori Sato > > Cc: uclinux-h8-de...@lists.sourceforge.jp > > Signed-off-by: Yury Norov > > Acked-by: Arnd Bergmann > > Acked-by: Mark Salter [c6x] > > Acked-by: James Hogan [metag] > > Acked-by: Ley Foon Tan [nios2] > > Acked-by: Stafford Horne [openrisc] > > Acked-by: Will Deacon [arm64] > > Acked-by: Vineet Gupta #arch/arc bits > > --- > > arch/arc/include/uapi/asm/unistd.h | 1 + > > arch/arm64/include/uapi/asm/unistd.h | 1 + > > arch/c6x/include/uapi/asm/unistd.h | 1 + > > arch/h8300/include/uapi/asm/unistd.h | 1 + > > arch/hexagon/include/uapi/asm/unistd.h | 1 + > > arch/metag/include/uapi/asm/unistd.h | 1 + > > arch/nios2/include/uapi/asm/unistd.h | 1 + > > arch/openrisc/include/uapi/asm/unistd.h | 1 + > > arch/score/include/uapi/asm/unistd.h | 1 + > > arch/tile/include/uapi/asm/unistd.h | 1 + > > arch/unicore32/include/uapi/asm/unistd.h | 1 + > > include/uapi/asm-generic/unistd.h| 5 + > > Don't forget to add __IGNORE_getrlimit and __IGNORE_setrlimit to > scripts/checksyscalls.sh, or you'll get warnings about missing syscalls. > > Cheers > James Hi James, Thanks for the hint. Yury ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
Hi Yury, On Sun, Jun 04, 2017 at 02:59:52PM +0300, Yury Norov wrote: > The newer prlimit64 syscall provides all the functionality provided by > the getrlimit and setrlimit syscalls and adds the pid of target process, > so future architectures won't need to include getrlimit and setrlimit. > > Therefore drop getrlimit and setrlimit syscalls from the generic syscall > list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's > unistd.h prior to including asm-generic/unistd.h, and adjust all architectures > using the generic syscall list to define it so that no in-tree architectures > are affected. > > Cc: Arnd Bergmann> Cc: James Hogan > Cc: linux-a...@vger.kernel.org > Cc: linux-snps-arc@lists.infradead.org > Cc: Catalin Marinas > Cc: Will Deacon > Cc: linux-arm-ker...@lists.infradead.org > Cc: Mark Salter > Cc: Aurelien Jacquiot > Cc: linux-c6x-...@linux-c6x.org > Cc: Richard Kuo > Cc: linux-hexa...@vger.kernel.org > Cc: linux-me...@vger.kernel.org > Cc: Jonas Bonn > Cc: li...@lists.openrisc.net > Cc: Chen Liqin > Cc: Lennox Wu > Cc: Chris Metcalf > Cc: Guan Xuetao > Cc: Ley Foon Tan > Cc: nios2-...@lists.rocketboards.org > Cc: Yoshinori Sato > Cc: uclinux-h8-de...@lists.sourceforge.jp > Signed-off-by: Yury Norov > Acked-by: Arnd Bergmann > Acked-by: Mark Salter [c6x] > Acked-by: James Hogan [metag] > Acked-by: Ley Foon Tan [nios2] > Acked-by: Stafford Horne [openrisc] > Acked-by: Will Deacon [arm64] > Acked-by: Vineet Gupta #arch/arc bits > --- > arch/arc/include/uapi/asm/unistd.h | 1 + > arch/arm64/include/uapi/asm/unistd.h | 1 + > arch/c6x/include/uapi/asm/unistd.h | 1 + > arch/h8300/include/uapi/asm/unistd.h | 1 + > arch/hexagon/include/uapi/asm/unistd.h | 1 + > arch/metag/include/uapi/asm/unistd.h | 1 + > arch/nios2/include/uapi/asm/unistd.h | 1 + > arch/openrisc/include/uapi/asm/unistd.h | 1 + > arch/score/include/uapi/asm/unistd.h | 1 + > arch/tile/include/uapi/asm/unistd.h | 1 + > arch/unicore32/include/uapi/asm/unistd.h | 1 + > include/uapi/asm-generic/unistd.h| 5 + Don't forget to add __IGNORE_getrlimit and __IGNORE_setrlimit to scripts/checksyscalls.sh, or you'll get warnings about missing syscalls. Cheers James signature.asc Description: Digital signature ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc
[PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
The newer prlimit64 syscall provides all the functionality provided by the getrlimit and setrlimit syscalls and adds the pid of target process, so future architectures won't need to include getrlimit and setrlimit. Therefore drop getrlimit and setrlimit syscalls from the generic syscall list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's unistd.h prior to including asm-generic/unistd.h, and adjust all architectures using the generic syscall list to define it so that no in-tree architectures are affected. Cc: Arnd BergmannCc: James Hogan Cc: linux-a...@vger.kernel.org Cc: linux-snps-arc@lists.infradead.org Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-...@linux-c6x.org Cc: Richard Kuo Cc: linux-hexa...@vger.kernel.org Cc: linux-me...@vger.kernel.org Cc: Jonas Bonn Cc: li...@lists.openrisc.net Cc: Chen Liqin Cc: Lennox Wu Cc: Chris Metcalf Cc: Guan Xuetao Cc: Ley Foon Tan Cc: nios2-...@lists.rocketboards.org Cc: Yoshinori Sato Cc: uclinux-h8-de...@lists.sourceforge.jp Signed-off-by: Yury Norov Acked-by: Arnd Bergmann Acked-by: Mark Salter [c6x] Acked-by: James Hogan [metag] Acked-by: Ley Foon Tan [nios2] Acked-by: Stafford Horne [openrisc] Acked-by: Will Deacon [arm64] Acked-by: Vineet Gupta #arch/arc bits --- arch/arc/include/uapi/asm/unistd.h | 1 + arch/arm64/include/uapi/asm/unistd.h | 1 + arch/c6x/include/uapi/asm/unistd.h | 1 + arch/h8300/include/uapi/asm/unistd.h | 1 + arch/hexagon/include/uapi/asm/unistd.h | 1 + arch/metag/include/uapi/asm/unistd.h | 1 + arch/nios2/include/uapi/asm/unistd.h | 1 + arch/openrisc/include/uapi/asm/unistd.h | 1 + arch/score/include/uapi/asm/unistd.h | 1 + arch/tile/include/uapi/asm/unistd.h | 1 + arch/unicore32/include/uapi/asm/unistd.h | 1 + include/uapi/asm-generic/unistd.h| 5 + 12 files changed, 16 insertions(+) diff --git a/arch/arc/include/uapi/asm/unistd.h b/arch/arc/include/uapi/asm/unistd.h index 9a34136d84b2..ac6496527ad6 100644 --- a/arch/arc/include/uapi/asm/unistd.h +++ b/arch/arc/include/uapi/asm/unistd.h @@ -16,6 +16,7 @@ #define _UAPI_ASM_ARC_UNISTD_H #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK diff --git a/arch/arm64/include/uapi/asm/unistd.h b/arch/arm64/include/uapi/asm/unistd.h index 043d17a21342..48355a683e25 100644 --- a/arch/arm64/include/uapi/asm/unistd.h +++ b/arch/arm64/include/uapi/asm/unistd.h @@ -15,5 +15,6 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #include diff --git a/arch/c6x/include/uapi/asm/unistd.h b/arch/c6x/include/uapi/asm/unistd.h index 12d73d9d81f5..f67623137853 100644 --- a/arch/c6x/include/uapi/asm/unistd.h +++ b/arch/c6x/include/uapi/asm/unistd.h @@ -15,6 +15,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_CLONE /* Use the standard ABI for syscalls. */ diff --git a/arch/h8300/include/uapi/asm/unistd.h b/arch/h8300/include/uapi/asm/unistd.h index 7dd20ef7625a..2f98394b77d4 100644 --- a/arch/h8300/include/uapi/asm/unistd.h +++ b/arch/h8300/include/uapi/asm/unistd.h @@ -1,5 +1,6 @@ #define __ARCH_NOMMU #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #include diff --git a/arch/hexagon/include/uapi/asm/unistd.h b/arch/hexagon/include/uapi/asm/unistd.h index 21517600432b..52d585c5cdb2 100644 --- a/arch/hexagon/include/uapi/asm/unistd.h +++ b/arch/hexagon/include/uapi/asm/unistd.h @@ -28,6 +28,7 @@ #define sys_mmap2 sys_mmap_pgoff #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK diff --git a/arch/metag/include/uapi/asm/unistd.h b/arch/metag/include/uapi/asm/unistd.h index 459b6ec15848..16b5cb32ec21 100644 --- a/arch/metag/include/uapi/asm/unistd.h +++ b/arch/metag/include/uapi/asm/unistd.h @@ -8,6 +8,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT /* Use the standard ABI for syscalls. */ #include diff --git a/arch/nios2/include/uapi/asm/unistd.h b/arch/nios2/include/uapi/asm/unistd.h index 51a32c71ce2b..b0dda4de2bc7 100644 --- a/arch/nios2/include/uapi/asm/unistd.h +++ b/arch/nios2/include/uapi/asm/unistd.h @@ -18,6 +18,7 @@ #define sys_mmap2 sys_mmap_pgoff #define __ARCH_WANT_RENAMEAT +#define
[PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
The newer prlimit64 syscall provides all the functionality provided by the getrlimit and setrlimit syscalls and adds the pid of target process, so future architectures won't need to include getrlimit and setrlimit. Therefore drop getrlimit and setrlimit syscalls from the generic syscall list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's unistd.h prior to including asm-generic/unistd.h, and adjust all architectures using the generic syscall list to define it so that no in-tree architectures are affected. Cc: Arnd BergmannCc: James Hogan Cc: linux-a...@vger.kernel.org Cc: linux-snps-arc@lists.infradead.org Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-...@linux-c6x.org Cc: Richard Kuo Cc: linux-hexa...@vger.kernel.org Cc: linux-me...@vger.kernel.org Cc: Jonas Bonn Cc: li...@lists.openrisc.net Cc: Chen Liqin Cc: Lennox Wu Cc: Chris Metcalf Cc: Guan Xuetao Cc: Ley Foon Tan Cc: nios2-...@lists.rocketboards.org Cc: Yoshinori Sato Cc: uclinux-h8-de...@lists.sourceforge.jp Acked-by: Arnd Bergmann Acked-by: Mark Salter [c6x] Acked-by: James Hogan [metag] Acked-by: Ley Foon Tan [nios2] Acked-by: Stafford Horne [openrisc] Acked-by: Vineet Gupta #arch/arc bits Signed-off-by: Yury Norov --- arch/arc/include/uapi/asm/unistd.h | 1 + arch/arm64/include/uapi/asm/unistd.h | 1 + arch/c6x/include/uapi/asm/unistd.h | 1 + arch/h8300/include/uapi/asm/unistd.h | 1 + arch/hexagon/include/uapi/asm/unistd.h | 1 + arch/metag/include/uapi/asm/unistd.h | 1 + arch/nios2/include/uapi/asm/unistd.h | 1 + arch/openrisc/include/uapi/asm/unistd.h | 1 + arch/score/include/uapi/asm/unistd.h | 1 + arch/tile/include/uapi/asm/unistd.h | 1 + arch/unicore32/include/uapi/asm/unistd.h | 1 + include/uapi/asm-generic/unistd.h| 5 + 12 files changed, 16 insertions(+) diff --git a/arch/arc/include/uapi/asm/unistd.h b/arch/arc/include/uapi/asm/unistd.h index 9a34136..ac64965 100644 --- a/arch/arc/include/uapi/asm/unistd.h +++ b/arch/arc/include/uapi/asm/unistd.h @@ -16,6 +16,7 @@ #define _UAPI_ASM_ARC_UNISTD_H #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK diff --git a/arch/arm64/include/uapi/asm/unistd.h b/arch/arm64/include/uapi/asm/unistd.h index 043d17a..48355a6 100644 --- a/arch/arm64/include/uapi/asm/unistd.h +++ b/arch/arm64/include/uapi/asm/unistd.h @@ -15,5 +15,6 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #include diff --git a/arch/c6x/include/uapi/asm/unistd.h b/arch/c6x/include/uapi/asm/unistd.h index 12d73d9..f676231 100644 --- a/arch/c6x/include/uapi/asm/unistd.h +++ b/arch/c6x/include/uapi/asm/unistd.h @@ -15,6 +15,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_CLONE /* Use the standard ABI for syscalls. */ diff --git a/arch/h8300/include/uapi/asm/unistd.h b/arch/h8300/include/uapi/asm/unistd.h index 7dd20ef..2f98394 100644 --- a/arch/h8300/include/uapi/asm/unistd.h +++ b/arch/h8300/include/uapi/asm/unistd.h @@ -1,5 +1,6 @@ #define __ARCH_NOMMU #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #include diff --git a/arch/hexagon/include/uapi/asm/unistd.h b/arch/hexagon/include/uapi/asm/unistd.h index 2151760..52d585c 100644 --- a/arch/hexagon/include/uapi/asm/unistd.h +++ b/arch/hexagon/include/uapi/asm/unistd.h @@ -28,6 +28,7 @@ #define sys_mmap2 sys_mmap_pgoff #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK diff --git a/arch/metag/include/uapi/asm/unistd.h b/arch/metag/include/uapi/asm/unistd.h index 459b6ec..16b5cb3 100644 --- a/arch/metag/include/uapi/asm/unistd.h +++ b/arch/metag/include/uapi/asm/unistd.h @@ -8,6 +8,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT /* Use the standard ABI for syscalls. */ #include diff --git a/arch/nios2/include/uapi/asm/unistd.h b/arch/nios2/include/uapi/asm/unistd.h index 51a32c7..b0dda4d 100644 --- a/arch/nios2/include/uapi/asm/unistd.h +++ b/arch/nios2/include/uapi/asm/unistd.h @@ -18,6 +18,7 @@ #define sys_mmap2 sys_mmap_pgoff #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT /* Use the standard ABI for syscalls */ #include diff --git