Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3723615imc; Thu, 14 Mar 2019 03:59:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7UEjMFF5c1tBGAy+GcAKuspx+7yOt6DvDhlo2ygX4kJoGx5cgSMN5hzAu6p2ijhTDJyn3 X-Received: by 2002:aa7:90c1:: with SMTP id k1mr48088905pfk.202.1552561161488; Thu, 14 Mar 2019 03:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552561161; cv=none; d=google.com; s=arc-20160816; b=KdPtZSXjJOlJhPnsKrREHYMJ8LMO5weVvCa3HIrS71NVCAEeS4IcqC97HgKTyicryN SRmZLlIXQh91syRymWPu3jj2ZPNmI0W9YjFjlI/tfj3sPVLs58uYucYZlMOK5StacMIo 00YAs8qlMLH0yEPOzUKnZkefV5xNDiSHFgtrmzbHuVrTOKED21Uc+kczaBiFQ/BMW4SH FYzol/IZINo3LetyIp2FiejPzoYyp/9GcqZJ8o5kKFJj5grO0PwdBBVF0A2Vpn5oYv6z 76SqKf/7OERXb24XOyPJHrydsc7oXXbXOpJHoq0dKkfyoRANTlgQl2wTuABpDTiNHP53 HWqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ij0v6/c4XznrS6VH0qbWL31+ThtFCQqjuwaHX9q3IYw=; b=daUAE6QLD7+BjrHN1fMvEH5W1xedfGXPhKVVLzKgnIZXcmSWgnaJLolkB5FtrQLnus 7wybzpeEOyIhl5JRU360+71TXApcAeyFnZZNkzW8W+nVR/9MvCMyKendzdw1D1hYxbQ3 iMaC3P984HFDQFlv1CJPTbar5REPnTmCTyTFmndvtTPgEkPJPy0mGNoEgaw1JF+87Jbs KdukXbc1coro00425JFByWo/Fx82blrprolflM9e00pfuPZ0yB3zMfqnrVoTqCKueZH8 fej07/RSrZr44Ws+Nb3xp002bm07yKbHhNZfeW/UiHlv6riR8yamJHI1uGEIdSaJaLLo WeYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=S8ZAjb2J; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si1033577pfd.243.2019.03.14.03.59.05; Thu, 14 Mar 2019 03:59:21 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=S8ZAjb2J; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727422AbfCNK6Z (ORCPT + 99 others); Thu, 14 Mar 2019 06:58:25 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:36920 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726337AbfCNK6Z (ORCPT ); Thu, 14 Mar 2019 06:58:25 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2EAwBol012260; Thu, 14 Mar 2019 05:58:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1552561091; bh=ij0v6/c4XznrS6VH0qbWL31+ThtFCQqjuwaHX9q3IYw=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=S8ZAjb2J8GSS4vFxv4z0KY0gYpGGnT8DYGNOvJ0dOJByc5rMEX+/CaN2hht0ubzTX LlvGmTBSuFNxXrafnrBppMMMw7ULI56y4qKScjDfbTeQUxCHqMfADy1tyV2tYTjtJw hV+1KE61hYL+DjBEoksKecR09VMpqjLsTEoHwod0= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2EAwBMk042533 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Mar 2019 05:58:11 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 14 Mar 2019 05:58:10 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 14 Mar 2019 05:58:11 -0500 Received: from [172.22.128.177] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2EAw7R3005299; Thu, 14 Mar 2019 05:58:08 -0500 Subject: Re: [PATCH] gpio: omap: avoid clang warning To: Arnd Bergmann , Santosh Shilimkar , Kevin Hilman , Linus Walleij , Bartosz Golaszewski CC: Nick Desaulniers , Tony Lindgren , Janusz Krzysztofik , Wolfram Sang , , , References: <20190307103348.1591457-1-arnd@arndb.de> From: Grygorii Strashko Message-ID: Date: Thu, 14 Mar 2019 12:58:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190307103348.1591457-1-arnd@arndb.de> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On 07.03.19 12:33, Arnd Bergmann wrote: > clang warns about a tentative array definition in the gpio-omap driver: > > drivers/gpio/gpio-omap.c:1282:34: error: tentative array definition assumed to have one element [-Werror] > static const struct of_device_id omap_gpio_match[]; > > It's best to just reorder the entire file to avoid forward declarations, > which lets us use the regular declaration. To do this, the unnecessary > CONFIG_OF check must also be removed. > > Signed-off-by: Arnd Bergmann > --- > drivers/gpio/gpio-omap.c | 549 +++++++++++++++++++-------------------- > 1 file changed, 267 insertions(+), 282 deletions(-) Sry, for delayed reply I do not have objection to the patch itself, so Reviewed-by: Grygorii Strashko but personally i do not like such changes as they kill "git blame" :(, I assume there would be merge conflict with https://lkml.org/lkml/2019/3/11/945 -- Best regards, grygorii