Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1173879ybg; Thu, 11 Jun 2020 02:59:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOHIpf23UONV3ItXJGI4iubioJpS1vx+5o2i8hGI2KILjMhQ6g6fxH7CVQYRaYKyTc96P4 X-Received: by 2002:a17:906:4e0a:: with SMTP id z10mr1846180eju.57.1591869549759; Thu, 11 Jun 2020 02:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591869549; cv=none; d=google.com; s=arc-20160816; b=cj/Bv7p92WbL0NRD7TWlEQ+xaOuA8GqgHH/Scl9p+xHrOh/6cEpuVM8/EOIN3978cE Za5SSKRVD7VfeHjLte0YTYZowJw9IZ/lCEgdChe/AJvln0VWQEoTrQ+Seb1YJ1DrjY4W 5Sj/AKfn1ls9/TTOgARDtw9gGey4T2O8gWzBWsapNpvXL6gNMRsvsUbEgqJEspGMWUOF JkqKusBTriBs6C8zrsIlAfB+Cuq2szX7NbL9iGodxgwv3sCsm+kusBURGaz/Ytk2Ks3g SeleoBU044ABDt08ZLoY+qYXUohI9HF7q7wShT1FVhPGIVO9S8sSKB2Rm/781jnBCK+w YI+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=ondMPxf4uc2ph0pt0HgNHkcg5ynpnvHAdpE5eze5hYk=; b=RWBGKOlA7Eb6lphwqurL7Rkdsc7/6g/dXomDhYWCmJH4o7ASYE8NRk4mhfSOgF3CJx fL7StjqrbNhu39tTrLG3b5vAPaKkKcXTwOaaU5H5TOCPEVQacFrizdAdx10YB/RGSYHz rYIzO9M6nyxsy4azlgsIkLrGFVKtgN/mNi7V6X7VyTI9GFImAnO8DjBO2zCstIZJUKG5 hlrpwuQ186QjSidxc/2RDuKZCwKVu0/t04o/G/ZpVmMsW2ck3n0FJOHulWnGa13ePoMP Cvvg8Tbn/PE5vvjUxteO4bD5UvAURh/U46fM3FQBkxImGceeYJ2sMeEKyiotTjxnq7te opRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QG4OosPT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si1722461ejq.273.2020.06.11.02.58.47; Thu, 11 Jun 2020 02:59:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QG4OosPT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726996AbgFKJ4z (ORCPT + 99 others); Thu, 11 Jun 2020 05:56:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726864AbgFKJ4z (ORCPT ); Thu, 11 Jun 2020 05:56:55 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C220C08C5C1 for ; Thu, 11 Jun 2020 02:56:54 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id 10so2454293pfx.8 for ; Thu, 11 Jun 2020 02:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=ondMPxf4uc2ph0pt0HgNHkcg5ynpnvHAdpE5eze5hYk=; b=QG4OosPTuQ7XSPnl3uAYPgAopJcCv0BggHQxnSP19seCkrDgxFVy4hU0ua0Z3FC9Av 2Vkn3X+kkzq1YqJzseiIDbwZLazYZyYTreNneCf7QzsK80vw2E6EXCzBUZiC9rlI7NmA KpFDfaDoJ2VQAbnj4HygVOT9ewMmqSHONrSvk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=ondMPxf4uc2ph0pt0HgNHkcg5ynpnvHAdpE5eze5hYk=; b=KrOvZPwRyjICfjU1nnVXTwIH1YPD9jr16/IF8xEeiQ2hmSv6xN/1cUHyhjLrirKxNi 94G9lvNXw+833i5N20X39w29GDHNe3lvtCOz0wBTtbRj6HlQ+g9ISSYOElaIFSLHQjyV QhoAc/qeGqMdEGqDQ+XNyt3J6+BxoSO68V0wgyM3AVjTC4+XUUk8VCZW9w/jaPl+pnHc yxKTZdvTAUoZ3/SBoivDJhc4uGA7m9EHwvsadONDQvkaV8J92MKHN5qlanBBfJuzYBvA FL5Om8apl47MRDFFF4LXxi4SAwqXF/Ede0exoeHt2VocW4h9VuOuzH3KfnVdq7YRkqP+ DX3Q== X-Gm-Message-State: AOAM533abP13sIKcz0KwuQ343WOUvE6a6fRLNjF4SNIVjFj5yCRtI4S7 uUdbMfIeSeM7lcS+AmYVrgTYJA== X-Received: by 2002:a65:6550:: with SMTP id a16mr6018320pgw.183.1591869413347; Thu, 11 Jun 2020 02:56:53 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id c8sm2154436pjn.16.2020.06.11.02.56.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 02:56:52 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200608104832.1.Ibe95d8f3daef01e5c57d4c8c398f04d6a839492c@changeid> References: <20200608104832.1.Ibe95d8f3daef01e5c57d4c8c398f04d6a839492c@changeid> Subject: Re: [PATCH 1/4] drm/bridge: ti-sn65dsi86: Don't compile GPIO bits if not CONFIG_OF_GPIO From: Stephen Boyd Cc: robdclark@chromium.org, bjorn.andersson@linaro.org, spanda@codeaurora.org, Douglas Anderson , kernel test robot , Daniel Vetter , David Airlie , Jernej Skrabec , Jonas Karlman , Laurent Pinchart , Linus Walleij , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org To: Douglas Anderson , a.hajda@samsung.com, narmstrong@baylibre.com, sam@ravnborg.org Date: Thu, 11 Jun 2020 02:56:51 -0700 Message-ID: <159186941181.242598.7668810499408351238@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Douglas Anderson (2020-06-08 10:48:32) > The kernel test robot noted that if "OF" is defined (which is needed > to select DRM_TI_SN65DSI86 at all) but not OF_GPIO that we'd get > compile failures because some of the members that we access in "struct > gpio_chip" are only defined "#if defined(CONFIG_OF_GPIO)". >=20 > All the GPIO bits in the driver are all nicely separated out. We'll > guard them with the same "#if defined" that the header has and add a > little stub function if OF_GPIO is not defined. >=20 > Fixes: 27ed2b3f22ed ("drm/bridge: ti-sn65dsi86: Export bridge GPIOs to Li= nux") > Reported-by: kernel test robot > Signed-off-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd