Re: [PATCH 1/7] lib/random32.c: Mark self-test data as __initconst

2014-06-08 Thread Daniel Borkmann

On 06/07/2014 10:19 AM, George Spelvin wrote:

So it can be thrown away along with the code that uses it.

Signed-off-by: George Spelvin 


Fine by me.

Acked-by: Daniel Borkmann 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/7] lib/random32.c: Mark self-test data as __initconst

2014-06-08 Thread Daniel Borkmann

On 06/07/2014 10:19 AM, George Spelvin wrote:

So it can be thrown away along with the code that uses it.

Signed-off-by: George Spelvin li...@horizon.com


Fine by me.

Acked-by: Daniel Borkmann dbork...@redhat.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/7] lib/random32.c: Mark self-test data as __initconst

2014-06-07 Thread George Spelvin
So it can be thrown away along with the code that uses it.

Signed-off-by: George Spelvin 
---
 lib/random32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/random32.c b/lib/random32.c
index fa5da61c..4da5d281 100644
--- a/lib/random32.c
+++ b/lib/random32.c
@@ -296,7 +296,7 @@ late_initcall(prandom_reseed);
 static struct prandom_test1 {
u32 seed;
u32 result;
-} test1[] = {
+} const test1[] __initconst = {
{ 1U, 3484351685U },
{ 2U, 2623130059U },
{ 3U, 3125133893U },
@@ -307,7 +307,7 @@ static struct prandom_test2 {
u32 seed;
u32 iteration;
u32 result;
-} test2[] = {
+} const test2[] __initconst = {
/* Test cases against taus113 from GSL library. */
{  931557656U, 959U, 2975593782U },
{ 1339693295U, 876U, 3887776532U },
-- 
2.0.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/7] lib/random32.c: Mark self-test data as __initconst

2014-06-07 Thread George Spelvin
So it can be thrown away along with the code that uses it.

Signed-off-by: George Spelvin li...@horizon.com
---
 lib/random32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/random32.c b/lib/random32.c
index fa5da61c..4da5d281 100644
--- a/lib/random32.c
+++ b/lib/random32.c
@@ -296,7 +296,7 @@ late_initcall(prandom_reseed);
 static struct prandom_test1 {
u32 seed;
u32 result;
-} test1[] = {
+} const test1[] __initconst = {
{ 1U, 3484351685U },
{ 2U, 2623130059U },
{ 3U, 3125133893U },
@@ -307,7 +307,7 @@ static struct prandom_test2 {
u32 seed;
u32 iteration;
u32 result;
-} test2[] = {
+} const test2[] __initconst = {
/* Test cases against taus113 from GSL library. */
{  931557656U, 959U, 2975593782U },
{ 1339693295U, 876U, 3887776532U },
-- 
2.0.0

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/