]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.7.7/lib-test_hash.c-fix-warning-in-two-dimensional-array-init.patch
fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 4.7.7 / lib-test_hash.c-fix-warning-in-two-dimensional-array-init.patch
1 From ed76b7a131f41c91b0c725d472f9b969d75ce888 Mon Sep 17 00:00:00 2001
2 From: Geert Uytterhoeven <geert@linux-m68k.org>
3 Date: Thu, 1 Sep 2016 16:14:50 -0700
4 Subject: lib/test_hash.c: fix warning in two-dimensional array init
5
6 From: Geert Uytterhoeven <geert@linux-m68k.org>
7
8 commit ed76b7a131f41c91b0c725d472f9b969d75ce888 upstream.
9
10 lib/test_hash.c: In function 'test_hash_init':
11 lib/test_hash.c:146:2: warning: missing braces around initializer [-Wmissing-braces]
12
13 Fixes: 468a9428521e7d00 ("<linux/hash.h>: Add support for architecture-specific functions")
14 Link: http://lkml.kernel.org/r/20160829214952.1334674-3-arnd@arndb.de
15 Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
16 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 Acked-by: George Spelvin <linux@sciencehorizons.net>
18 Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
19 Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21
22 ---
23 lib/test_hash.c | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26 --- a/lib/test_hash.c
27 +++ b/lib/test_hash.c
28 @@ -143,7 +143,7 @@ static int __init
29 test_hash_init(void)
30 {
31 char buf[SIZE+1];
32 - u32 string_or = 0, hash_or[2][33] = { 0 };
33 + u32 string_or = 0, hash_or[2][33] = { { 0, } };
34 unsigned tests = 0;
35 unsigned long long h64 = 0;
36 int i, j;