From: akpm@linux-foundation.org Subject: [patch 04/14] lib/test_hash.c: fix warning in two-dimensional array init Date: Thu, 01 Sep 2016 16:14:50 -0700 Message-ID: <57c8b66a.zLScM59CoVQJkhuz%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:59844 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751040AbcIAXOv (ORCPT ); Thu, 1 Sep 2016 19:14:51 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: torvalds@linux-foundation.org, mm-commits@vger.kernel.org, akpm@linux-foundation.org, geert@linux-m68k.org, arnd@arndb.de, linux@sciencehorizons.net From: Geert Uytterhoeven Subject: lib/test_hash.c: fix warning in two-dimensional array init lib/test_hash.c: In function 'test_hash_init': lib/test_hash.c:146:2: warning: missing braces around initializer [-Wmissing-braces] Fixes: 468a9428521e7d00 (": Add support for architecture-specific functions") Link: http://lkml.kernel.org/r/20160829214952.1334674-3-arnd@arndb.de Signed-off-by: Geert Uytterhoeven Signed-off-by: Arnd Bergmann Acked-by: George Spelvin Signed-off-by: Andrew Morton --- lib/test_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN lib/test_hash.c~test-hash-fix-warning-in-two-dimensional-array-init lib/test_hash.c --- a/lib/test_hash.c~test-hash-fix-warning-in-two-dimensional-array-init +++ a/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; _