public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Revamp randomize_range()
@ 2014-01-26 21:20 Yann Droneaud
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Yann Droneaud @ 2014-01-26 21:20 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: Yann Droneaud, linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-26 21:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-26 21:20 [PATCH 0/2] Revamp randomize_range() Yann Droneaud
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox