From: Yann Droneaud <ydroneaud@opteya.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: Yann Droneaud <ydroneaud@opteya.com>, linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] Revamp randomize_range()
Date: Sun, 26 Jan 2014 22:20:37 +0100 [thread overview]
Message-ID: <cover.1390770607.git.ydroneaud@opteya.com> (raw)
Hi,
Please find two patches to remove unused/unwanted behavor
on randomize_range() function.
The first one remove the last option (len) which is unused
in current kernel. The second one rewrite the function to not
fail, allowing to remove the error handling code from the
calling functions.
I've not added the maintainers of the various arch modified
by the patches, wanted first to have your opinion about the
changes.
Regards.
Yann Droneaud (2):
random: remove unused len argument in randomize_range() function
random: don't return 0 in randomize_range()
arch/arm/kernel/process.c | 2 +-
arch/arm64/kernel/process.c | 2 +-
arch/tile/mm/mmap.c | 2 +-
arch/unicore32/kernel/process.c | 2 +-
arch/x86/kernel/process.c | 2 +-
arch/x86/kernel/sys_x86_64.c | 5 +----
drivers/char/random.c | 19 ++++++++-----------
include/linux/random.h | 2 +-
8 files changed, 15 insertions(+), 21 deletions(-)
--
1.8.5.3
next reply other threads:[~2014-01-26 21:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-26 21:20 Yann Droneaud [this message]
2014-01-26 21:20 ` [PATCH 1/2] random: remove unused len argument in randomize_range() function Yann Droneaud
2014-01-26 21:20 ` [PATCH 2/2] random: don't return 0 in randomize_range() Yann Droneaud
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=cover.1390770607.git.ydroneaud@opteya.com \
--to=ydroneaud@opteya.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/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