Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp334846yba; Wed, 3 Apr 2019 09:34:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsP3cFNLUsm9d5uvvnGp5BMyhZQt8u53eg8ChwAp5lO10vKmG9l/hia5OuBQ+KouZuSgF9 X-Received: by 2002:a17:902:7c94:: with SMTP id y20mr878428pll.263.1554309263363; Wed, 03 Apr 2019 09:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554309263; cv=none; d=google.com; s=arc-20160816; b=X5vwqv40sfriWaOaXk81ZcEOd8i9366t7KWktvTf9YJwCu7efnVVM928aaZaOQ042D VNWLrbeax5CeCYdSbACS68TgTkj8oR1zjnBS2lVoXdiKFZ+YGwsK02lE3CSSf/D/YfBd 92Y1Ej0uzB8dS0t0vAMQjY/rTg2rt1m/DpvyMsV1mKIO8YqN8p5cw1cX9T2ayMvo0Hdu ZH1XUfoaKCRJodNcpx101FJumqIhSV/sxu6xxkralfdxtGbMBrnHgiflQG/4GxYriit/ Q4fR2Ls0kMj1bBzsDVXt7HaEC2VBp7A7F4Bsfe7A2wrmfDu+y9U2nsHKEYCKtAZXYElw oU4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=49LiaxgLCt2pzdt9ApMMcOcyaCZtDTqdHkb/0BnM004=; b=xqXmYFRxUzxD/+bu37Skexfcj0yLNTC8X4qKE0knUJlpq2o90iJ5IwcvBsN8dfGQCM AIvjXRS3GyuZJVEVtshPcY5ZbGBpzEcYk3X9vUDS7XLI/1Q++zOC+HFu4/9ewlGzUfyw uXrBpUUH2Hd5eNKdg6F3kkBVzW/proTDimluFNJLy/IG6cvi1vNzfe9RE9O9uWr+3QLQ TSG/ifH803nTB+3Sn93pHHRdje8Px+VMTzIzAHhQcz/vXvgS2DWsyRjqTnJRH4QnXzop jin+Z5W+D82LyoS8m79WQmVR+NNa01DFXqAis7jHrS4o1g/KB1kVkpNVhZjiEvib2cAj N4rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uy7M4LUn; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si14152424pgj.96.2019.04.03.09.34.08; Wed, 03 Apr 2019 09:34:23 -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=@linaro.org header.s=google header.b=uy7M4LUn; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726672AbfDCQdT (ORCPT + 99 others); Wed, 3 Apr 2019 12:33:19 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:39246 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726630AbfDCQdS (ORCPT ); Wed, 3 Apr 2019 12:33:18 -0400 Received: by mail-lj1-f194.google.com with SMTP id l7so15454487ljg.6 for ; Wed, 03 Apr 2019 09:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=49LiaxgLCt2pzdt9ApMMcOcyaCZtDTqdHkb/0BnM004=; b=uy7M4LUnyZH5iWQabTMaM4vTBxDq5tgiHvX5BFp/5HE70BJg/0rnfYcDl0NeWfu2i8 RCyyu9WWMnMU3PtZ43X/m99HpBM1teA11TdcCjzZlynfIK2rWjUNoCgcXXiQX6b/LTQr P78Qr8ftLKE9TXton/Y+05Os/OsePDYWYqUmS+vt4+MLi2C96ByVx/LrEKvLz+6FlABY 2u7jT8cgBggl1I4XnQyUjluRAp4pvUILLz5muFyJz+CPCo0V9xf5nA6Rjg2/oNYODTVa F9HYB4WhkZrMvOK9e8xZayo/278BuDqLQjM5Qt3+Ltb8NHPFEBiKum4LkYDIyhmNlBT6 Qiiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=49LiaxgLCt2pzdt9ApMMcOcyaCZtDTqdHkb/0BnM004=; b=s92Ln4yVY36ckeL8+9hxvddVUAF9vN0JwrIIUE4/lmynXCujr8Ozu+Wwyc1Z2DrD96 lm2A9YMVVcb89RMJ9msJI2XQfFjnaJtAfGagZQhBeWsd9utWY6w3g/nuTeyDXZRy4MBe BVy/aqQcTEfQV/Ig8pGx1JScizrEmXfyG5+9fbISIM0EgM9lGHhogD8RM94mm7g/IE4u /aKkRb7HHzNjtERNkrNTiTaJnUQtglWmKBzvrrov/uNVKqYILXR9xatJKEfAhp1bEaAS 42/oRfousRyB1la2eoYcN7IzR520NhG7JfYp2iMrmcyd0TSuFp3kBUY3ZuyEl101tTPW Sdxg== X-Gm-Message-State: APjAAAUo4utmHHLhPtV3uq+KFJlL8+Tq7aBThZ2WHweoeURjcPKSG+EX kz0VvhoJmIQlkNIMjsbWwHQtvZBqCdmQSI+U/uH1QQ== X-Received: by 2002:a2e:5d94:: with SMTP id v20mr411875lje.138.1554309196833; Wed, 03 Apr 2019 09:33:16 -0700 (PDT) MIME-Version: 1.0 References: <20190307103348.1591457-1-arnd@arndb.de> In-Reply-To: <20190307103348.1591457-1-arnd@arndb.de> From: Linus Walleij Date: Wed, 3 Apr 2019 23:33:05 +0700 Message-ID: Subject: Re: [PATCH] gpio: omap: avoid clang warning To: Arnd Bergmann Cc: Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Bartosz Golaszewski , Nick Desaulniers , Tony Lindgren , Janusz Krzysztofik , Wolfram Sang , Linux-OMAP , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 7, 2019 at 5:33 PM 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 Patch applied. Yours, Linus Walleij