Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942006AbcJFIio (ORCPT ); Thu, 6 Oct 2016 04:38:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47212 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941845AbcJFIil (ORCPT ); Thu, 6 Oct 2016 04:38:41 -0400 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Arnd Bergmann , George Spelvin , Andrew Morton , Linus Torvalds Subject: [PATCH 4.7 059/141] lib/test_hash.c: fix warning in two-dimensional array init Date: Thu, 6 Oct 2016 10:28:15 +0200 Message-Id: <20161006074451.316921307@linuxfoundation.org> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20161006074448.608056610@linuxfoundation.org> References: <20161006074448.608056610@linuxfoundation.org> User-Agent: quilt/0.64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 36 4.7-stable review patch. If anyone has any objections, please let me know. ------------------ From: Geert Uytterhoeven commit ed76b7a131f41c91b0c725d472f9b969d75ce888 upstream. 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 Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- lib/test_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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;