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

2012-11-13 Thread Akinobu Mita
ytes_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() and prandom_bytes_state() bnx2x: use pra

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

2012-11-13 Thread Akinobu Mita
() 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() and prandom_bytes_state() bnx2x: use prandom_bytes

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

2012-11-13 Thread Akinobu Mita
for generating random bytes for testing. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Theodore Ts'o ty...@mit.edu Cc: Artem Bityutskiy dedeki...@gmail.com Cc: Adrian Hunter adrian.hun...@intel.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org Cc: Eilon Greenstein eil

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- * v3 - rename random32_get_bytes

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- * v3 - rename 'random32_*' to 'prandom_

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

2012-11-13 Thread Akinobu Mita
Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org 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

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- * v3 - rename random32_get_bytes to prandom_bytes drivers/mtd/tests

[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 akinobu.m...@gmail.com Cc: Eilon Greenstein eil...@broadcom.com Cc: net...@vger.kernel.org --- * v3 - rename random32_get_bytes to prandom_bytes drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 5 + 1

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- * v3 - rename 'random32_*' to 'prandom_

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- * v3 - rename 'random32_*' to 'prandom_

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- * v3 - rename

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: Adrian Hunter adrian.hun...@intel.com Cc: linux-...@lists.infradead.org --- * v3 - rename random32_get_bytes to prandom_bytes fs/ubifs/debug.c

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

2012-11-13 Thread Akinobu Mita
-by: Akinobu Mita akinobu.m...@gmail.com Cc: Theodore Ts'o ty...@mit.edu Cc: Robert Love robert.w.l...@intel.com Cc: de...@open-fcoe.org Cc: Michel Lespinasse wal...@google.com Cc: Valdis Kletnieks valdis.kletni...@vt.edu Cc: David Laight david.lai...@aculab.com --- * v3 - change common prefix from

[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

[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

[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/radeon: Use hweight32

2012-11-09 Thread Akinobu Mita
Use hweight32 instead of counting for each bit Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: David Airlie airl...@linux.ie 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

[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 akinobu.m...@gmail.com Cc: David Airlie airl...@linux.ie Cc: dri-de...@lists.freedesktop.org --- drivers/gpu/drm/drm_edid.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff

[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 akinobu.m...@gmail.com Cc: dri-de...@lists.freedesktop.org Cc: David Airlie airl...@linux.ie --- drivers/gpu

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

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 david.lai...@aculab.com: 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 functions into random32 library

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

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

[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 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 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 02/11] random32: introduce random32_get_bytes() and random32_get_bytes_state()

2012-11-03 Thread Akinobu Mita
-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 --- * v2 - rename prandom32_get_bytes to random32_get_bytes_state include/linux/random.h | 2 ++ lib/

[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 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 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 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 01/11] random32: rename prandom32 to random32_state

2012-11-03 Thread Akinobu Mita
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 patch from v2 drivers/

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

2012-11-03 Thread Akinobu Mita
as a result of this renaming, random32 is the common prefix for random32 library. Suggested-by: Theodore Ts'o ty...@mit.edu Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Theodore Ts'o ty...@mit.edu Cc: Robert Love robert.w.l...@intel.com Cc: de...@open-fcoe.org Cc: Michel Lespinasse wal

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- * v2 - rename prandom32_get_bytes

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- * v2 - rename prandom32_get_bytes

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- no change

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

2012-11-03 Thread Akinobu Mita
Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org 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

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- no change from v1 drivers/mtd/tests/mtd_speedtest.c | 9

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

2012-11-03 Thread Akinobu Mita
-by: Akinobu Mita akinobu.m...@gmail.com Cc: Theodore Ts'o ty...@mit.edu Cc: Artem Bityutskiy dedeki...@gmail.com Cc: Adrian Hunter adrian.hun...@intel.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org Cc: Eilon Greenstein eil...@broadcom.com Cc: net...@vger.kernel.org

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- no change from v1 drivers/mtd

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- * v2 - rename prandom32_get_bytes

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: Adrian Hunter adrian.hun...@intel.com Cc: linux-...@lists.infradead.org --- no change from v1 fs/ubifs/debug.c | 8 +++- 1 file changed, 3

[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 akinobu.m...@gmail.com Cc: Eilon Greenstein eil...@broadcom.com Cc: net...@vger.kernel.org --- new patch from v2 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 5 + 1 file changed, 1 insertion

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

2012-11-03 Thread Akinobu Mita
- 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_get_bytes() mtd: nandsim: use

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 again

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 ty...@mit.edu: 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 again. By the way, should we also rename the existing

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 holding

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 to c

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 ty...@mit.edu: 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 to copy the pseudo-random

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

2012-10-30 Thread Akinobu Mita
2012/10/30 Akinobu Mita akinobu.m...@gmail.com: 2012/10/30 Theodore Ts'o ty...@mit.edu: 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

[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

[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 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 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 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 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 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-28 Thread Akinobu Mita
-by: 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 a/inc

[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 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-28 Thread Akinobu Mita
-by: Akinobu Mita akinobu.m...@gmail.com Cc: Theodore Ts'o ty...@mit.edu Cc: Artem Bityutskiy dedeki...@gmail.com Cc: Adrian Hunter adrian.hun...@intel.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- include/linux/random.h | 2 ++ lib/random32.c | 38

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- drivers/mtd/tests/mtd_oobtest.c | 49

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

2012-10-28 Thread Akinobu Mita
Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org 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

[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 akinobu.m...@gmail.com --- 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

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- drivers/mtd/nand/nandsim.c | 5

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- drivers/mtd/tests/mtd_subpagetest.c

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- drivers/mtd/tests/mtd_pagetest.c | 43

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: Adrian Hunter adrian.hun...@intel.com Cc: linux-...@lists.infradead.org --- fs/ubifs/debug.c | 8 +++- 1 file changed, 3 insertions(+), 5

[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 akinobu.m...@gmail.com Cc: Artem Bityutskiy dedeki...@gmail.com Cc: David Woodhouse dw...@infradead.org Cc: linux-...@lists.infradead.org --- drivers/mtd

[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] 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] 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] dmatest: adjust invalid module parameters for number of source buffers

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

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

2012-10-27 Thread Akinobu Mita
to the 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 akinobu.m...@gmail.com Cc: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d...@fb.com --- drivers/dma/dmatest.c

[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 akinobu.m...@gmail.com Cc: Srinidhi Kasagar srinidhi.kasa...@stericsson.com Cc: Linus Walleij linus.wall...@linaro.org Cc: linux-arm-ker...@lists.infradead.org Cc: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d

[PATCH] dma: amba-pl08x: use vchan_dma_desc_free_list

2012-10-27 Thread Akinobu Mita
-pl08x driver. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d...@fb.com --- 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

[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 akinobu.m...@gmail.com Cc: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d...@fb.com --- crypto/async_tx/async_xor.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crypto

[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

[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 akinobu.m...@gmail.com Cc: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d...@fb.com --- include/linux/dmaengine.h | 18 +- 1 file

[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] 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] 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 akinobu.m...@gmail.com 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

[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 akinobu.m...@gmail.com Cc: David Airlie airl...@linux.ie Cc: dri-de...@lists.freedesktop.org --- drivers/gpu/drm/ttm/ttm_tt.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git

[PATCH -mm] cciss: select CONFIG_CHECK_SIGNATURE

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

[PATCH -mm] cciss: select CONFIG_CHECK_SIGNATURE

2012-09-07 Thread Akinobu Mita
...@linux.intel.com Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Fengguang Wu w...@linux.intel.com Cc: Mike Miller mike.mil...@hp.com Cc: Jens Axboe ax...@kernel.dk Cc: Stephen M. Cameron scame...@beardog.cce.hp.com --- drivers/block/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [Patch] string: do not export memweight() to userspace

2012-08-06 Thread Akinobu Mita
2012/8/6 Cong Wang : > From: WANG Cong > > This patch fixes the following warning: > > usr/include/linux/string.h:8: userspace cannot reference function or variable > defined in the kernel Thanks for finding this problem. Looks good to me. > Cc: Akinobu Mita >

Re: [Patch] string: do not export memweight() to userspace

2012-08-06 Thread Akinobu Mita
2012/8/6 Cong Wang amw...@redhat.com: From: WANG Cong xiyou.wangc...@gmail.com This patch fixes the following warning: usr/include/linux/string.h:8: userspace cannot reference function or variable defined in the kernel Thanks for finding this problem. Looks good to me. Cc: Akinobu Mita

[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 -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

Re: [PATCH] fork: fix error handling in dup_task()

2012-07-13 Thread Akinobu Mita
2012/7/13 Andrew Morton : > On Thu, 12 Jul 2012 20:04:53 +0900 > Akinobu Mita wrote: > >> The function dup_task() may fail at the following function calls in >> the following order. >> >> 0) alloc_task_struct_node() >> 1) alloc_thread_info_node() >&g

Re: [PATCH] fork: fix error handling in dup_task()

2012-07-13 Thread Akinobu Mita
2012/7/13 Andrew Morton a...@linux-foundation.org: On Thu, 12 Jul 2012 20:04:53 +0900 Akinobu Mita akinobu.m...@gmail.com wrote: The function dup_task() may fail at the following function calls in the following order. 0) alloc_task_struct_node() 1) alloc_thread_info_node() 2

[PATCH] fork: fix error handling in dup_task()

2012-07-12 Thread Akinobu Mita
() as listed below. arch_release_task_struct(): x86, sh arch_release_thread_info(): mn10300, tile Signed-off-by: Akinobu Mita Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: David Howells Cc: Koichi Yasutake Cc: linux-am33-l...@redhat.com Cc: Paul

[PATCH] fork: fix error handling in dup_task()

2012-07-12 Thread Akinobu Mita
() as listed below. arch_release_task_struct(): x86, sh arch_release_thread_info(): mn10300, tile Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@redhat.com Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Cc: David Howells dhowe

[PATCH -mm 3/3] fault-injection: mention failcmd.sh tool in document

2012-07-07 Thread Akinobu Mita
. Signed-off-by: Akinobu Mita --- Documentation/fault-injection/fault-injection.txt | 27 + 1 file changed, 27 insertions(+) diff --git a/Documentation/fault-injection/fault-injection.txt b/Documentation/fault-injection/fault-injection.txt index dc77948..832fc4f 100644

[PATCH -mm 2/3] notifier error injection documentation

2012-07-07 Thread Akinobu Mita
fault-injection-notifier-error-injection.patch in -mm tree adds notifier error injection. This adds Documentation/fault-injection/notifier-error-inject.txt which describes its feature and usage examples. Signed-off-by: Akinobu Mita Cc: Pavel Machek Cc: "Rafael J. Wysocki" Cc: G

[PATCH -mm 1/3] notifier error injection: fix copy-and-paste error in Kconfig help

2012-07-07 Thread Akinobu Mita
powerpc-pseries-reconfig-notifier-error-injection-module.patch in -mm tree has a copy-and-paste error in Kconfig help. The module name should be pSeries-reconfig-notifier-error-inject. Signed-off-by: Akinobu Mita Cc: Benjamin Herrenschmidt Cc: Paul Mackerras --- lib/Kconfig.debug |2

[PATCH -mm 1/3] notifier error injection: fix copy-and-paste error in Kconfig help

2012-07-07 Thread Akinobu Mita
powerpc-pseries-reconfig-notifier-error-injection-module.patch in -mm tree has a copy-and-paste error in Kconfig help. The module name should be pSeries-reconfig-notifier-error-inject. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul

[PATCH -mm 2/3] notifier error injection documentation

2012-07-07 Thread Akinobu Mita
fault-injection-notifier-error-injection.patch in -mm tree adds notifier error injection. This adds Documentation/fault-injection/notifier-error-inject.txt which describes its feature and usage examples. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Pavel Machek pa...@ucw.cz Cc: Rafael

[PATCH -mm 3/3] fault-injection: mention failcmd.sh tool in document

2012-07-07 Thread Akinobu Mita
. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com --- Documentation/fault-injection/fault-injection.txt | 27 + 1 file changed, 27 insertions(+) diff --git a/Documentation/fault-injection/fault-injection.txt b/Documentation/fault-injection/fault-injection.txt index dc77948

[PATCH -mm] module: fix __find_symbl() error checks

2008-02-06 Thread Akinobu Mita
__find_symbl() error checks remain unchanged. Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]> Cc: Christoph Lameter <[EMAIL PROTECTED]> --- kernel/module.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) Index: 2.6.24-mm1/ker

<    4   5   6   7   8   9   10   11   12   13   >