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
() 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
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
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
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_
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
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
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
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_
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_
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
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
-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
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
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
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
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
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
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
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
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
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
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
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 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
-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/
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
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
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
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/
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
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
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
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
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
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
-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
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
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
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
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
- 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
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
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
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
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
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
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
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
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
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 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
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
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
-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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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 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 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
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
-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
+++
...@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
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
>
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
.
# ./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
.
# ./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
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
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
() 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
() 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
.
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
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
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
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
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
.
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
__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
801 - 900 of 1201 matches
Mail list logo