From patchwork Wed Aug 10 21:54:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101954 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp610170qga; Wed, 10 Aug 2016 14:58:48 -0700 (PDT) X-Received: by 10.66.248.10 with SMTP id yi10mr10947279pac.31.1470866328781; Wed, 10 Aug 2016 14:58:48 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l78si50382524pfj.253.2016.08.10.14.58.47; Wed, 10 Aug 2016 14:58:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933357AbcHJV6o (ORCPT + 27 others); Wed, 10 Aug 2016 17:58:44 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:60754 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752652AbcHJV6d (ORCPT ); Wed, 10 Aug 2016 17:58:33 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue005) with ESMTPA (Nemesis) id 0MAywa-1bPsIB3bi0-009y6H; Wed, 10 Aug 2016 23:58:27 +0200 From: Arnd Bergmann To: George Spelvin Cc: Geert Uytterhoeven , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 8/9] test/hash: Fix warning in two-dimensional array init Date: Wed, 10 Aug 2016 23:54:14 +0200 Message-Id: <20160810215424.1926658-9-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160810215424.1926658-1-arnd@arndb.de> References: <20160810215424.1926658-1-arnd@arndb.de> X-Provags-ID: V03:K0:r8EUbc50VNReQf0YL6w+NF3QWeFl3rHfAzJKCR0ti1tkW+Pgy9a PDgzo/49tgqCRNsFQajprGPlZZ/zirlIT8Qh1XfwRR3l7C44X7oz6O73LD7257ksjav4eHb 59wrQcfIHXOrqP8iqIoTyZ6iGF1eswcAPz68xbidzwFEqf0OHjTI9/BfGXCII0HJaFEuUg5 aZoPUIqQjE15mrdV9/Pcg== X-UI-Out-Filterresults: notjunk:1; V01:K0:bX15BtSuEzo=:egOeX51A1DUorNCHpAngTX eMlYtQ5D+IhPIt1x/xApCvWguBnk63mz6P44exxQCFWcXvPSxsPY7mmBkyPD23Bnp7GX0o09L Y95EM0Q0I8Amdt49WAR6SvB9OCTjFW6ZaVs6f5H2E0v1MqS1kz/9ukWsoLcvrqZidCCMaO8Ad ReyrmSq00tx0E/8bMZPtKL9UyHQ3+lCBJNbq3slITXRm3iq23v8D7lMvPmqDEsiod3apD+Ohw G2N14E6rATeDAv+zNf38RvgAZoDd4k/ob0BtuYc/HurtkISTvQs9bWdjo1XNHB5TRiljt8X5k RvwbTPOUbXlZhU6ICtxi/xdGUb3F3CU4wTQGzeddIh8ucWwY89kS4hr0Vu0YP6usRY6iHuNEP ygDd2pXZrXcP7j7mlczQZH69C2WCeazsr2XILgIMR8Wqkc3kgGD78qUJ0iVdCUvKMQI0qO0f9 CencL4uIKKWaueRhCrLs+o/nRu2GNpiF+xUlVjzLIUYyE51E/tsBpoFoeS9FKZufE5MzJHFlL ok+GK0iMEEPa99BJsZk9lT+vt7Lj57qdu7maKJU6L99plQZ0zrm7WIWIUvRXSkjOumTfYhFsm xYLQCp2mrCOfAhs2pBLw5QMY/1MA6DXQ+SohWINhtgBsGtv62QTsvT8IWVNLK4pVZRQrXuZvs ifoiHEcOULMDHRFwU3v3BVPI60W0jWHa1yNndPBtAYAhROyYfNcONakECRVBCC2t4LjI= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven 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") Signed-off-by: Geert Uytterhoeven Acked-by: George Spelvin Signed-off-by: Arnd Bergmann --- lib/test_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/lib/test_hash.c b/lib/test_hash.c index 66c5fc8351e8..81702ee4c41c 100644 --- 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;