projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
236dec0
)
lib/test_hash.c: fix warning in two-dimensional array init
author
Geert Uytterhoeven
<
[email protected]
>
Thu, 1 Sep 2016 23:14:50 +0000
(16:14 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 2 Sep 2016 00:52:01 +0000
(17:52 -0700)
lib/test_hash.c: In function 'test_hash_init':
lib/test_hash.c:146:2: warning: missing braces around initializer [-Wmissing-braces]
Fixes: 468a9428521e7d00 ("<linux/hash.h>: Add support for architecture-specific functions")
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Geert Uytterhoeven <
[email protected]
>
Signed-off-by: Arnd Bergmann <
[email protected]
>
Acked-by: George Spelvin <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
lib/test_hash.c
patch
|
blob
|
history
diff --git
a/lib/test_hash.c
b/lib/test_hash.c
index 66c5fc8351e84d703373a3572d6afaea84c410da..81702ee4c41c01aec46228eb75fd7745d10dfc58 100644
(file)
--- a/
lib/test_hash.c
+++ b/
lib/test_hash.c
@@
-143,7
+143,7
@@
static int __init
test_hash_init(void)
{
char buf[SIZE+1];
- u32 string_or = 0, hash_or[2][33] = {
0
};
+ u32 string_or = 0, hash_or[2][33] = {
{ 0, }
};
unsigned tests = 0;
unsigned long long h64 = 0;
int i, j;