2013/3/12 :
> On Sun, 10 Mar 2013 17:09:50 +0900, Akinobu Mita said:
>> This fixes the wrong position of the comment introduced by
>> scsi-rename-random32-to-prandom_u32.patch in the -mm tree.
>>
>> Signed-off-by: Akinobu Mita
>> Cc: "James
2012/10/31 Theodore Ts'o :
> On Tue, Oct 30, 2012 at 08:12:39PM +0900, Akinobu Mita wrote:
>> >>
>> >> How about prandom32_get_bytes_state() and prandom32_get_bytes() instead?
>> >
>> > I agree with your suggestion. I'll rename them and try
ting worse.
So as a result of this renaming, "random32" is the common prefix for
random32 library.
Suggested-by: "Theodore Ts'o"
Signed-off-by: Akinobu Mita
Cc: "Theodore Ts'o"
Cc: Robert Love
Cc: de...@open-fcoe.org
Cc: Michel Lespinasse
---
new patc
This removes home-brewed pseudo-random number generator and use
random32_get_bytes_state().
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
* v2
- rename prandom32_get_bytes to random32_get_bytes_state
drivers/mtd/tests
This removes home-brewed pseudo-random number generator and use
random32_get_bytes_state().
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
* v2
- rename prandom32_get_bytes to random32_get_bytes_state
drivers/mtd/tests
Using random32_get_bytes() is enough. Because this data is only used
for testing, not used for cryptographic use.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
no change from v1
drivers/mtd/tests/mtd_nandecctest.c | 2 +-
1 file
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
new patch from v2
drivers/mtd/tests/mtd_stresstest.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mtd/tests/mtd_stresstest.c
b/drivers/mtd/tests
Use random32_get_bytes instead of equivalent local function.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
no change from v1
drivers/mtd/tests/mtd_speedtest.c | 9 +
1 file changed, 1 insertion(+), 8 deletions(-)
diff
: Akinobu Mita
Cc: "Theodore Ts'o"
Cc: Artem Bityutskiy
Cc: Adrian Hunter
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
Cc: Eilon Greenstein
Cc: net...@vger.kernel.org
---
* v2
- rename prandom32_get_bytes to random32_get_bytes_state
include/linux/random.h | 2 ++
This also removes unnecessary memset call which is immediately overwritten
with random bytes.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
no change from v1
drivers/mtd/nand/nandsim.c | 5 +
1 file changed, 1 insertion(+), 4
This removes home-brewed pseudo-random number generator and use
random32_get_bytes_state().
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
* v2
- rename prandom32_get_bytes to random32_get_bytes_state
drivers/mtd/tests/mtd_oobtest.c
This also converts filling memory loop to use memset.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: Adrian Hunter
Cc: linux-...@lists.infradead.org
---
no change from v1
fs/ubifs/debug.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/fs/ubifs/debug.c b/fs
Use random32_get_bytes() to fill rss key with pseudo-random bytes.
Signed-off-by: Akinobu Mita
Cc: Eilon Greenstein
Cc: net...@vger.kernel.org
---
new patch from v2
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers
rity
exposure.
Changelog
* v2
- rename prandom32 to random32_state
- dropped lib/uuid.c patch
- add bnx2 and mtd_stresstest patches
Akinobu Mita (11):
random32: rename prandom32 to random32_state
random32: introduce random32_get_bytes() and
random32_get_bytes_state()
bnx2x: use random32_g
.
# ./failcmd.sh echo aaa
failcmd.sh: line 209: [: echo: binary operator expected
aaa
This warning is caused by an improper check whether at least one
parameter is left after parsing command options.
Fix it by testing the length of $1 instead of $@
Signed-off-by: Akinobu
Use copy_highpage() to copy from one page to another.
Signed-off-by: Akinobu Mita
Cc: drbd-...@lists.linbit.com
---
drivers/block/drbd/drbd_bitmap.c | 7 +--
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c
Use copy_highpage() to copy from one page to another.
Signed-off-by: Akinobu Mita
Cc: David Airlie
Cc: dri-de...@lists.freedesktop.org
---
drivers/gpu/drm/ttm/ttm_tt.c | 16 ++--
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers
Use for_each_set_bit() to implement for_each_dma_cap_mask() and
remove unused first_dma_cap() and next_dma_cap().
Signed-off-by: Akinobu Mita
Cc: Vinod Koul
Cc: Dan Williams
---
include/linux/dmaengine.h | 18 +-
1 file changed, 1 insertion(+), 17 deletions(-)
diff --git a
device. But most drivers don't check it, so unexpected results will happen.
This makes an appropriate adjustment for these module parameters before use.
Signed-off-by: Akinobu Mita
Cc: Vinod Koul
Cc: Dan Williams
---
drivers/dma/dmatest.c | 16 +---
1 file changed, 13 inser
Replace open-coded loop with for_each_set_bit().
Signed-off-by: Akinobu Mita
Cc: Srinidhi Kasagar
Cc: Linus Walleij
Cc: linux-arm-ker...@lists.infradead.org
Cc: Vinod Koul
Cc: Dan Williams
---
drivers/dma/ste_dma40.c | 13 +++--
1 file changed, 3 insertions(+), 10 deletions(-)
diff
r amba-pl08x driver.
Signed-off-by: Akinobu Mita
Cc: Vinod Koul
Cc: Dan Williams
---
drivers/dma/amba-pl08x.c | 8 +---
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index d1cc579..6eb6a5c 100644
--- a/drivers/dma/amba-p
Use memchr_inv() to check the specified page is filled with zero.
Signed-off-by: Akinobu Mita
Cc: Vinod Koul
Cc: Dan Williams
---
crypto/async_tx/async_xor.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/crypto/async_tx/async_xor.c b/crypto/async_tx/async_xor.c
index
: Akinobu Mita
Cc: "Theodore Ts'o"
Cc: Artem Bityutskiy
Cc: Adrian Hunter
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
include/linux/random.h | 2 ++
lib/random32.c | 38 ++
2 files changed, 40 insertions(+)
diff --git
This removes home-brewed pseudo-random number generator and use
prandom32_get_bytes().
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
drivers/mtd/tests/mtd_oobtest.c | 49 ++---
1 file changed, 16
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
drivers/mtd/tests/mtd_speedtest.c | 9 +
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/drivers/mtd/tests/mtd_speedtest.c
b/drivers/mtd/tests/mtd_speedtest.c
index
Use random32_get_bytes() to generate 16 bytes of pseudo-random bytes.
Signed-off-by: Akinobu Mita
---
lib/uuid.c | 8 +---
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/lib/uuid.c b/lib/uuid.c
index 52a6fe6..697f867 100644
--- a/lib/uuid.c
+++ b/lib/uuid.c
@@ -25,13 +25,7
This also removes unnecessary memset call which is immediately overwritten
with random bytes.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
drivers/mtd/nand/nandsim.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff
This removes home-brewed pseudo-random number generator and use
prandom32_get_bytes().
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
drivers/mtd/tests/mtd_subpagetest.c | 42 +++--
1 file changed, 12
This removes home-brewed pseudo-random number generator and use
prandom32_get_bytes().
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
drivers/mtd/tests/mtd_pagetest.c | 43
1 file changed, 13
This also converts filling memory loop to use memset.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: Adrian Hunter
Cc: linux-...@lists.infradead.org
---
fs/ubifs/debug.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index
Using random32_get_bytes() is enough. Because this data is only used
for testing, not used for cryptographic use.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
drivers/mtd/tests/mtd_nandecctest.c | 2 +-
1 file changed, 1 insertion
2012/10/30 Theodore Ts'o :
> On Sun, Oct 28, 2012 at 04:18:58PM +0900, Akinobu Mita wrote:
>> /**
>> + * prandom32_get_bytes - get the requested number of pseudo-random bytes
>> + * @state: pointer to state structure holding seeded state.
>> + * @buf: where
2012/10/30 Akinobu Mita :
> 2012/10/30 Theodore Ts'o :
>> On Sun, Oct 28, 2012 at 04:18:58PM +0900, Akinobu Mita wrote:
>>> /**
>>> + * prandom32_get_bytes - get the requested number of pseudo-random bytes
>>> + * @state: pointer to state structure ho
2013/9/20 Paul Bolle :
> On Thu, 2013-08-22 at 23:49 +0900, Akinobu Mita wrote:
>> 2013/8/22 James Bottomley :
>> > On Thu, 2013-08-22 at 21:42 +0900, Akinobu Mita wrote:
>> >> Unfortunately, this warning isn't fixed in linux-next, either.
>> >> P
Wu
Signed-off-by: Akinobu Mita
Cc: Fengguang Wu
Cc: Mike Miller
Cc: Jens Axboe
Cc: "Stephen M. Cameron"
---
drivers/block/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index f529407..f7de322 100644
--- a/drivers/block/K
'prandom_'
- ensure prandom_bytes_state() generates same bytes with same rnd_state
* v2
- rename prandom32 to random32_state
- dropped lib/uuid.c patch
- add bnx2 and mtd_stresstest patches
Akinobu Mita (11):
random32: rename random32 to prandom
prandom: introduce prandom_bytes() an
e
for generating random bytes for testing.
Signed-off-by: Akinobu Mita
Cc: "Theodore Ts'o"
Cc: Artem Bityutskiy
Cc: Adrian Hunter
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
Cc: Eilon Greenstein
Cc: net...@vger.kernel.org
---
* v3
- rename random32_get_bytes_state to
This also removes unnecessary memset call which is immediately overwritten
with random bytes.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
* v3
- rename random32_get_bytes to prandom_bytes
drivers/mtd/nand/nandsim.c | 5 +
1
This removes home-brewed pseudo-random number generator and use
prandom library.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
* v3
- rename 'random32_*' to 'prandom_*'
* v2
- rename prandom32_get_bytes to rand
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
* v3
- rename random32_get_bytes to prandom_bytes
drivers/mtd/tests/mtd_stresstest.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mtd/tests
Use prandom_bytes instead of equivalent local function.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
* v3
- rename random32_get_bytes to prandom_bytes
drivers/mtd/tests/mtd_speedtest.c | 9 +
1 file changed, 1 insertion
Use prandom_bytes() to fill rss key with pseudo-random bytes.
Signed-off-by: Akinobu Mita
Cc: Eilon Greenstein
Cc: net...@vger.kernel.org
---
* v3
- rename random32_get_bytes to prandom_bytes
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 5 +
1 file changed, 1 insertion(+), 4
This removes home-brewed pseudo-random number generator and use
prandom library.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
* v3
- rename 'random32_*' to 'prandom_*'
* v2
- rename prandom32_get_bytes to rand
This removes home-brewed pseudo-random number generator and use
prandom library.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
* v3
- rename 'random32_*' to 'prandom_*'
* v2
- rename prandom32_get_bytes to rand
Using prandom_bytes() is enough. Because this data is only used
for testing, not used for cryptographic use.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: David Woodhouse
Cc: linux-...@lists.infradead.org
---
* v3
- rename random32_get_bytes to prandom_bytes
drivers/mtd/tests
This also converts filling memory loop to use memset.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: Adrian Hunter
Cc: linux-...@lists.infradead.org
---
* v3
- rename random32_get_bytes to prandom_bytes
fs/ubifs/debug.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions
ult to rename too many users at once.
Signed-off-by: Akinobu Mita
Cc: "Theodore Ts'o"
Cc: Robert Love
Cc: de...@open-fcoe.org
Cc: Michel Lespinasse
Cc: Valdis Kletnieks
Cc: David Laight
---
* v3
- change common prefix from 'random32_' to 'prandom_
2012/11/6 David Laight :
>> On Sun, 04 Nov 2012 00:43:31 +0900, Akinobu Mita said:
>> > This patchset introduces new functions into random32 library for
>> > getting the requested number of pseudo-random bytes.
>> >
>> > Before introducing these new funct
Use hweight32 instead of counting for each bit
Signed-off-by: Akinobu Mita
Cc: David Airlie
Cc: dri-de...@lists.freedesktop.org
---
drivers/gpu/drm/radeon/r600.c| 8 +---
drivers/gpu/drm/radeon/r600_cp.c | 7 +--
2 files changed, 2 insertions(+), 13 deletions(-)
diff --git a
Use memchr_inv() to check the specified memory region is filled with zero.
Signed-off-by: Akinobu Mita
Cc: David Airlie
Cc: dri-de...@lists.freedesktop.org
---
drivers/gpu/drm/drm_edid.c | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/drm_edid.c b
It is unnecessary to disable preemption explicitly while calling
copy_highpage(). Because copy_highpage() will do it again through
kmap_atomic/kunmap_atomic.
Signed-off-by: Akinobu Mita
Cc: dri-de...@lists.freedesktop.org
Cc: David Airlie
---
drivers/gpu/drm/ttm/ttm_tt.c | 4
1 file
2012/12/25 Antonio Quartulli :
> On Mon, Dec 24, 2012 at 11:14:06AM +0900, Akinobu Mita wrote:
>> batadv_iv_ogm_emit_send_time() attempts to calculates a random integer
>> in the range of 'orig_interval +- BATADV_JITTER' by the below lines.
>>
>>
it actually gets 'orig_interval' or 'orig_interval - BATADV_JITTER'
because '%' and '*' have same precedence and associativity is
left-to-right.
This adds the parentheses at the appropriate position so that it matches
original intension.
Signed-off-by: Akinobu Mita
Use prandom_bytes() to generate random bytes for test data.
Signed-off-by: Akinobu Mita
Cc: Dan Williams
Cc: Vinod Koul
---
No change from v1
crypto/async_tx/raid6test.c | 9 ++---
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/crypto/async_tx/raid6test.c b/crypto
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: drbd-...@lists.linbit.com
Cc: Jens Axboe
---
No change from v1
drivers/block/drbd/drbd_receiver.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: David Woodhouse
Cc: Artem Bityutskiy
Cc: linux-...@lists.infradead.org
---
No change from v1
drivers/mtd/nand/nandsim.c | 6 +++---
drivers/mtd/tests
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: "David S. Miller"
Cc: net...@vger.kernel.org
---
* Change from v1
- leave net_random() callers as-is because that is a useful indirection
net/core/pkt
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Pablo Neira Ayuso
Cc: Patrick McHardy
Cc: netfilter-de...@vger.kernel.org
Cc: netfil...@vger.kernel.org
Cc: coret...@netfilter.org
Cc: "David S. Miller"
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Stephen Hemminger
Cc: Jamal Hadi Salim
Cc: "David S. Miller"
Cc: ne...@lists.linux-foundation.org
Cc: net...@vger.kernel.org
Cc: net...@vger.kernel.org
---
* Chan
After finishing a naming transition, remove unused backward
compatibility wrapper macros
Signed-off-by: Akinobu Mita
Cc: "Theodore Ts'o"
---
* Change from v1
- leave net_random() and net_srandom() definision
include/linux/random.h | 7 ---
1 file changed, 7 deletions(-
ile I'm at it, enclose macro argument of net_srandom() with parenthesis.
Signed-off-by: Akinobu Mita
Cc: "David S. Miller"
Cc: net...@vger.kernel.org
---
* New patch from v2
include/linux/net.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/li
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Chris Ball
Cc: linux-...@vger.kernel.org
---
No change from v1
drivers/mmc/core/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: linux-...@vger.kernel.org
---
No change from v1
drivers/uwb/rsv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/uwb/rsv.c b/drivers/uwb
Remove duplicate statements by using do-while loop instead of while loop.
- A;
- while (e) {
+ do {
A;
- }
+ } while (e);
Signed-off-by: Akinobu Mita
Cc: "David S. Miller"
Cc: net...@vger.kernel.org
---
No change from v1
net/core/pktgen.c | 15 ++-
1 file
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: "J. Bruce Fields"
Cc: Trond Myklebust
Cc: "David S. Miller"
Cc: net...@vger.kernel.org
Cc: linux-...@vger.kernel.org
---
* Change from v1
- leave net_ra
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Acked-by: Antonio Quartulli
Cc: Marek Lindner
Cc: Simon Wunderlich
Cc: Antonio Quartulli
Cc: b.a.t.m@lists.open-mesh.org
Cc: "David S. Miller"
Cc: net...@vger.
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Acked-by: Thomas Sailer
Cc: "David S. Miller"
Cc: Michael Chan
Cc: Thomas Sailer
Cc: Jean-Paul Roubelat
Cc: Bing Zhao
Cc: net...@vger.kernel.org
C
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Ben Myers
Cc: Alex Elder
Cc: x...@oss.sgi.com
---
No change from v1
fs/xfs/xfs_alloc.c | 2 +-
fs/xfs/xfs_error.c | 2 +-
fs/xfs/xfs_ialloc.c | 2 +-
fs/xfs/xfs_log.c
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: x...@kernel.org
---
No change from v1
arch/x86/mm/pageattr-test.c | 4 ++--
1 file changed, 2 insert
pageattr-test calls srandom32() once every test iteration.
But calling srandom32() after late_initcalls is not meaningfull.
Because the random states for random32() is mixed by good random numbers
in late_initcall prandom_reseed().
So this removes the call to srandom32().
Signed-off-by: Akinobu
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
---
No change from v1
kernel/rcutree.c | 2 +-
kernel/test_kprobes.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/rcutree.c b/kernel
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Michal Januszewski
Cc: Florian Tobias Schandinat
Cc: linux-fb...@vger.kernel.org
---
No change from v1
drivers/video/uvesafb.c | 2 +-
1 file changed, 1 insertion(+), 1
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: "James E.J. Bottomley"
Cc: Robert Love
Cc: de...@open-fcoe.org
Cc: James Smart
Cc: Andrew Vasquez
Cc: linux-dri...@qlogic.com
Cc: linux-s...@vger.kernel.org
---
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Rusty Russell
Cc: lgu...@lists.ozlabs.org
---
No change from v1
drivers/lguest/page_tables.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Artem Bityutskiy
Cc: Adrian Hunter
Cc: linux-...@lists.infradead.org
---
No change from v1
fs/ubifs/debug.c | 8
fs/ubifs/lpt_commit.c | 14
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Roland Dreier
Cc: Sean Hefty
Cc: Hal Rosenstock
Cc: Steve Wise
Cc: linux-r...@vger.kernel.org
---
* Change from v1
- leave net_random() callers as-is because that is a
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: linux...@kvack.org
---
No change from v1
mm/swapfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/swapfile.c b/mm/swapfile.c
index e97a0e5
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
---
No change from v1
lib/fault-inject.c | 2 +-
lib/list_sort.c| 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/fault-inject.c b/lib/fault
Use prandom_bytes() to generate 16 bytes of pseudo-random bytes.
Signed-off-by: Akinobu Mita
Cc: "Theodore Ts'o"
Cc: Huang Ying
---
No change from v1
lib/uuid.c | 8 +---
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/lib/uuid.c b/lib/uuid.c
index 52a6fe6.
ing on the substitution.
* Changes from v1
- leave all net_random() and net_srandom callers as-is and preserve the
macro definisions. Because that is a useful indirection.
Spotted by Neil Horman.
- remove batman-adv fix which has been applied to net
- collect Acked-by:
Akinobu Mita (26):
raid
2013/1/4 Steve Wise :
> Are there other "non pseudo-random" services that warrant this rename?
I couldn't understand your question very well. So I'm not sure this is
the expected answer:
I only renamed pseudo-random functions defined in lib/random32.c in the
commit 496f2f93 ("random32: rename ran
2013/1/4 Antonio Quartulli :
> On Thu, Jan 03, 2013 at 09:19:15PM +0900, Akinobu Mita wrote:
>> Use more preferable function name which implies using a pseudo-random
>> number generator.
>>
>> Signed-off-by: Akinobu Mita
>> Acked-by: Antonio Quartulli
&
2013/1/4 H. Peter Anvin :
> On 01/03/2013 04:18 AM, Akinobu Mita wrote:
>>
>> pageattr-test calls srandom32() once every test iteration.
>> But calling srandom32() after late_initcalls is not meaningfull.
>> Because the random states for random32() is mixed b
2013/1/5 Steve Wise :
> I'm asking: why are you bothering with renaming the functions? This seems
> like a needless change, _unless_ there are really non-pseudo-random services
> being added.
We already have get_random_byte() which is not pseudo-random number
generator.
Apart from that, the nami
srandom32(). They also should be
renamed to prandom_* while I'm at it.
This patch series also includes minor cleanup and bugfix which were found
while I was working on the substitution.
Akinobu Mita (29):
raid6test: use prandom_bytes()
uuid: use prandom_bytes()
x86: pageattr-test: remove
Use prandom_bytes() to generate 16 bytes of pseudo-random bytes.
Signed-off-by: Akinobu Mita
Cc: "Theodore Ts'o"
Cc: Huang Ying
---
lib/uuid.c | 8 +---
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/lib/uuid.c b/lib/uuid.c
index 52a6fe6..398821e 100644
-
Use prandom_bytes() to generate random bytes for test data.
Signed-off-by: Akinobu Mita
Cc: Dan Williams
Cc: Vinod Koul
---
crypto/async_tx/raid6test.c | 9 ++---
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/crypto/async_tx/raid6test.c b/crypto/async_tx/raid6test.c
index
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: drbd-...@lists.linbit.com
Cc: Jens Axboe
---
drivers/block/drbd/drbd_receiver.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/block/drbd
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Michal Januszewski
Cc: Florian Tobias Schandinat
Cc: linux-fb...@vger.kernel.org
---
drivers/video/uvesafb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: linux-...@vger.kernel.org
---
drivers/uwb/rsv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/uwb/rsv.c b/drivers/uwb/rsv.c
index 0b0d8bc
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: "J. Bruce Fields"
Cc: Trond Myklebust
Cc: "David S. Miller"
Cc: net...@vger.kernel.org
Cc: linux-...@vger.kernel.org
---
net/sunrpc/auth_gss/gss_krb5_
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Pablo Neira Ayuso
Cc: Patrick McHardy
Cc: netfilter-de...@vger.kernel.org
Cc: netfil...@vger.kernel.org
Cc: coret...@netfilter.org
Cc: "David S. Miller"
Remove duplicate statements by using do-while loop instead of while loop.
- A;
- while (e) {
+ do {
A;
- }
+ } while (e);
Signed-off-by: Akinobu Mita
Cc: "David S. Miller"
Cc: net...@vger.kernel.org
---
net/core/pktgen.c | 15 ++-
1 file changed, 6 insert
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Jesse Gross
Cc: Venkat Venkatsubra
Cc: Vlad Yasevich
Cc: Sridhar Samudrala
Cc: Neil Horman
Cc: Steffen Klassert
Cc: Herbert Xu
Cc: "David S. Miller"
C
After finishing a naming transition, remove unused backward
compatibility wrapper macros
Signed-off-by: Akinobu Mita
Cc: "Theodore Ts'o"
Cc: "David S. Miller"
Cc: net...@vger.kernel.org
---
include/linux/net.h| 3 ---
include/linux/random.h | 7 ---
2 fi
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: x...@kernel.org
---
arch/x86/mm/pageattr-test.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletion
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
---
kernel/rcutree.c | 2 +-
kernel/test_kprobes.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index e441b77
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Rusty Russell
Cc: lgu...@lists.ozlabs.org
---
drivers/lguest/page_tables.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/lguest/page_tables.c b
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: Marek Lindner
Cc: Simon Wunderlich
Cc: Antonio Quartulli
Cc: b.a.t.m@lists.open-mesh.org
Cc: "David S. Miller"
Cc: net...@vger.kernel.org
---
net/
Use more preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita
Cc: "David S. Miller"
Cc: Alexey Kuznetsov
Cc: James Morris
Cc: Hideaki YOSHIFUJI
Cc: Patrick McHardy
Cc: net...@vger.kernel.org
---
net/ipv6/addrconf.c | 4
1 - 100 of 640 matches
Mail list logo