Re: [PATCH -mmotm] scsi: fix the wrong position of the comment

2013-03-13 Thread Akinobu Mita
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

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-31 Thread Akinobu Mita
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

[PATCH v2 01/11] random32: rename prandom32 to random32_state

2012-11-03 Thread Akinobu Mita
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

[PATCH v2 08/11] mtd: mtd_pagetest: convert to use random32_get_bytes_state()

2012-11-03 Thread Akinobu Mita
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

[PATCH v2 10/11] mtd: mtd_subpagetest: convert to use random32_get_bytes_state()

2012-11-03 Thread Akinobu Mita
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

[PATCH v2 06/11] mtd: mtd_nandecctest: use random32_get_bytes instead of get_random_bytes()

2012-11-03 Thread Akinobu Mita
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

[PATCH v2 11/11] mtd: mtd_stresstest: use random32_get_bytes()

2012-11-03 Thread Akinobu Mita
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

[PATCH v2 09/11] mtd: mtd_speedtest: use random32_get_bytes

2012-11-03 Thread Akinobu Mita
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

[PATCH v2 02/11] random32: introduce random32_get_bytes() and random32_get_bytes_state()

2012-11-03 Thread Akinobu Mita
: 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 ++

[PATCH v2 04/11] mtd: nandsim: use random32_get_bytes

2012-11-03 Thread Akinobu Mita
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

[PATCH v2 07/11] mtd: mtd_oobtest: convert to use random32_get_bytes_state()

2012-11-03 Thread Akinobu Mita
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

[PATCH v2 05/11] ubifs: use random32_get_bytes

2012-11-03 Thread Akinobu Mita
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

[PATCH v2 03/11] bnx2x: use random32_get_bytes()

2012-11-03 Thread Akinobu Mita
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

[PATCH v2 00/11] introduce random32_get_bytes() and random32_get_bytes_state()

2012-11-03 Thread Akinobu Mita
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

[PATCH -mm] fault-injection: fix failcmd.sh warning

2012-07-27 Thread Akinobu Mita
. # ./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

[PATCH] drbd: use copy_highpage

2012-09-25 Thread Akinobu Mita
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

[PATCH] gpu/drm/ttm: use copy_highpage

2012-09-25 Thread Akinobu Mita
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

[PATCH] dmaengine: use for_each_set_bit

2012-10-26 Thread Akinobu Mita
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

[PATCH] dmatest: adjust invalid module parameters for number of source buffers

2012-10-27 Thread Akinobu Mita
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

[PATCH] dma: ste_dma40: use for_each_set_bit

2012-10-27 Thread Akinobu Mita
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

[PATCH] dma: amba-pl08x: use vchan_dma_desc_free_list

2012-10-27 Thread Akinobu Mita
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

[PATCH] async_tx: use memchr_inv

2012-10-27 Thread Akinobu Mita
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

[PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-28 Thread Akinobu Mita
: 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

[PATCH 6/9] mtd: mtd_oobtest: convert to use prandom32_get_bytes()

2012-10-28 Thread Akinobu Mita
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

[PATCH 8/9] mtd: mtd_speedtest: use random32_get_bytes

2012-10-28 Thread Akinobu Mita
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

[PATCH 2/9] uuid: use random32_get_bytes()

2012-10-28 Thread Akinobu Mita
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

[PATCH 4/9] mtd: nandsim: use random32_get_bytes

2012-10-28 Thread Akinobu Mita
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

[PATCH 9/9] mtd: mtd_subpagetest: convert to use prandom32_get_bytes()

2012-10-28 Thread Akinobu Mita
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

[PATCH 7/9] mtd: mtd_pagetest: convert to use prandom32_get_bytes()

2012-10-28 Thread Akinobu Mita
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

[PATCH 5/9] ubifs: use random32_get_bytes

2012-10-28 Thread Akinobu Mita
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

[PATCH 3/9] mtd: mtd_nandecctest: use random32_get_bytes instead of get_random_bytes()

2012-10-28 Thread Akinobu Mita
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

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-30 Thread 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 holding seeded state. >> + * @buf: where

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-30 Thread Akinobu Mita
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

Re: [PATCH] scsi: fix the build warning

2013-09-20 Thread Akinobu Mita
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

[PATCH -mm] cciss: select CONFIG_CHECK_SIGNATURE

2012-09-07 Thread Akinobu Mita
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

[PATCH v3 00/11] rename random32 to prandom and introduce prandom_bytes()

2012-11-13 Thread Akinobu Mita
'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

[PATCH v3 02/11] prandom: introduce prandom_bytes() and prandom_bytes_state()

2012-11-13 Thread Akinobu Mita
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

[PATCH v3 04/11] mtd: nandsim: use prandom_bytes

2012-11-13 Thread Akinobu Mita
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

[PATCH v3 07/11] mtd: mtd_oobtest: convert to use prandom library

2012-11-13 Thread Akinobu Mita
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

[PATCH v3 11/11] mtd: mtd_stresstest: use prandom_bytes()

2012-11-13 Thread Akinobu Mita
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

[PATCH v3 09/11] mtd: mtd_speedtest: use prandom_bytes

2012-11-13 Thread Akinobu Mita
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

[PATCH v3 03/11] bnx2x: use prandom_bytes()

2012-11-13 Thread Akinobu Mita
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

[PATCH v3 10/11] mtd: mtd_subpagetest: convert to use prandom library

2012-11-13 Thread Akinobu Mita
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

[PATCH v3 08/11] mtd: mtd_pagetest: convert to use prandom library

2012-11-13 Thread Akinobu Mita
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

[PATCH v3 06/11] mtd: mtd_nandecctest: use prandom_bytes instead of get_random_bytes()

2012-11-13 Thread Akinobu Mita
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

[PATCH v3 05/11] ubifs: use prandom_bytes

2012-11-13 Thread Akinobu Mita
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

[PATCH v3 01/11] random32: rename random32 to prandom

2012-11-13 Thread Akinobu Mita
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_

Re: [PATCH v2 00/11] introduce random32_get_bytes() and random32_get_bytes_state()

2012-11-06 Thread Akinobu Mita
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

[PATCH] drm/radeon: Use hweight32

2012-11-09 Thread Akinobu Mita
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

[PATCH] drm: use memchr_inv()

2012-11-09 Thread Akinobu Mita
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

[PATCH] drm/ttm: remove unneeded preempt_disable/enable

2012-11-09 Thread Akinobu Mita
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

Re: [PATCH 19/29] batman-adv: fix random jitter calculation

2012-12-25 Thread Akinobu Mita
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. >> >>

[PATCH] batman-adv: fix random jitter calculation

2012-12-26 Thread Akinobu Mita
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

[PATCH -v2 01/26] raid6test: use prandom_bytes()

2013-01-03 Thread 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

[PATCH -v2 08/26] drbd: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 17/26] mtd: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 23/26] net/core: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 22/26] net/netfilter: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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"

[PATCH -v2 21/26] net/sched: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 26/26] remove unused random32() and srandom32()

2013-01-03 Thread Akinobu Mita
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(-

[PATCH -v2 25/26] net: rename random32 to prandom

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 10/26] mmc: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 14/26] uwb: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 24/26] net/core: remove duplicate statements by do-while loop

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 20/26] net/sunrpc: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 19/26] batman-adv: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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.

[PATCH -v2 18/26] drivers/net: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 12/26] xfs: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 04/26] x86: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 03/26] x86: pageattr-test: remove srandom32 call

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 07/26] kernel/: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 11/26] video/uvesafb: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 16/26] scsi: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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 ---

[PATCH -v2 15/26] lguest: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 13/26] ubifs: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 09/26] infiniband: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 06/26] mm/: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 05/26] lib/: rename random32() to prandom_u32()

2013-01-03 Thread Akinobu Mita
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

[PATCH -v2 02/26] uuid: use prandom_bytes()

2013-01-03 Thread Akinobu Mita
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.

[PATCH -v2 00/26] rename random32 to prandom

2013-01-03 Thread Akinobu Mita
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

Re: [PATCH -v2 09/26] infiniband: rename random32() to prandom_u32()

2013-01-04 Thread Akinobu Mita
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

Re: [PATCH -v2 19/26] batman-adv: rename random32() to prandom_u32()

2013-01-04 Thread Akinobu Mita
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 &

Re: [PATCH -v2 03/26] x86: pageattr-test: remove srandom32 call

2013-01-04 Thread Akinobu Mita
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

Re: [PATCH -v2 09/26] infiniband: rename random32() to prandom_u32()

2013-01-05 Thread Akinobu Mita
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

[PATCH 00/29] rename random32 and net_random to prandom

2012-12-23 Thread Akinobu Mita
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

[PATCH 02/29] uuid: use prandom_bytes()

2012-12-23 Thread Akinobu Mita
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 -

[PATCH 01/29] raid6test: use prandom_bytes()

2012-12-23 Thread Akinobu Mita
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

[PATCH 08/29] drbd: rename random32() to prandom_u32()

2012-12-23 Thread Akinobu Mita
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

[PATCH 11/29] video/uvesafb: rename random32() to prandom_u32()

2012-12-23 Thread Akinobu Mita
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

[PATCH 14/29] uwb: rename random32() to prandom_u32()

2012-12-23 Thread Akinobu Mita
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

[PATCH 21/29] net/sunrpc: rename random32() and net_random() to prandom_u32()

2012-12-23 Thread Akinobu Mita
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_

[PATCH 25/29] net/netfilter: rename random32() and net_random() to prandom_u32()

2012-12-23 Thread Akinobu Mita
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"

[PATCH 27/29] net/core: remove duplicate statements by do-while loop

2012-12-23 Thread Akinobu Mita
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

[PATCH 28/29] net/: rename net_random() to prandom_u32()

2012-12-23 Thread Akinobu Mita
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

[PATCH 29/29] remove unused net_random(), net_srandom(), random32(), and srandom32()

2012-12-23 Thread Akinobu Mita
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

[PATCH 04/29] x86: rename random32() to prandom_u32()

2012-12-23 Thread Akinobu Mita
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

[PATCH 07/29] kernel/: rename random32() to prandom_u32()

2012-12-23 Thread Akinobu Mita
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

[PATCH 15/29] lguest: rename random32() to prandom_u32()

2012-12-23 Thread Akinobu Mita
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

[PATCH 20/29] batman-adv: rename random32() to prandom_u32()

2012-12-23 Thread Akinobu Mita
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/

[PATCH 24/29] net/ipv6: rename net_random() to prandom_u32()

2012-12-23 Thread Akinobu Mita
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   2   3   4   5   6   7   >