From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] asm-generic: Drop getrlimit and setrlimit syscalls from default list
Date: Sat, 29 Oct 2016 23:02:40 +0200 [thread overview]
Message-ID: <2502005.4risrb1P1I@wuerfel> (raw)
In-Reply-To: <1477138444-14993-1-git-send-email-ynorov@caviumnetworks.com>
On Saturday, October 22, 2016 3:14:04 PM CEST 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.
The patch looks good, but shouldn't we also hide the actual syscall
implementation if the symbol is not set? It's just dead code otherwise
for new architectures.
Arnd
next prev parent reply other threads:[~2016-10-29 21:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-22 12:14 [PATCH] asm-generic: Drop getrlimit and setrlimit syscalls from default list Yury Norov
2016-10-23 20:57 ` Vineet Gupta
2016-10-24 9:09 ` James Hogan
2016-10-25 0:47 ` Ley Foon Tan
2016-10-25 12:51 ` Stafford Horne
2016-10-29 21:02 ` Arnd Bergmann [this message]
2016-10-29 21:45 ` Yury Norov
2016-10-29 21:52 ` Arnd Bergmann
2016-10-29 23:06 ` James Hogan
2016-10-29 21:54 ` Arnd Bergmann
2016-10-29 22:05 ` Yury Norov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2502005.4risrb1P1I@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).