From patchwork Fri Jul 1 10:16:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102063 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp219461qgy; Fri, 1 Jul 2016 03:13:52 -0700 (PDT) X-Received: by 10.66.52.11 with SMTP id p11mr29862043pao.155.1467368032209; Fri, 01 Jul 2016 03:13:52 -0700 (PDT) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id k62si3580113pfk.56.2016.07.01.03.13.51; Fri, 01 Jul 2016 03:13:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 72DF16EA1E; Fri, 1 Jul 2016 10:13:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by gabe.freedesktop.org (Postfix) with ESMTPS id 159AC6EA1E for ; Fri, 1 Jul 2016 10:13:47 +0000 (UTC) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0Mh1yy-1awsK62Uj2-00M8BQ; Fri, 01 Jul 2016 12:13:42 +0200 From: Arnd Bergmann To: Thierry Reding , David Airlie Subject: [PATCH] drm/tegra: add missing include Date: Fri, 1 Jul 2016 12:16:20 +0200 Message-Id: <20160701101630.3063718-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:+NpFwkvjreUTvjRU5J2F+puUU0kgA6rfWI4guN9n4FcOKqimPSg Dc7XqSHvE77kn9mTtVJjDpA6y34Skab6OQ3VGqPGR03fwpnQwDj8LHmia9c2VpbKDEEUZgh +RMo01rlHKjUkyAT6MGnEj6y//RnH4BD/svIjoRAaDcDyXe36IWCgrd0EmyxRUm3vrP/XO0 G3Cj0N/HvcRVwPl16Cl8A== X-UI-Out-Filterresults: notjunk:1; V01:K0:jqHMTMUGiEU=:x6DZ2qjFWJT/jfbAIB4SXe CuqhGGOtmjjKCZslwj63ft3Zlpwm/8dzAkQkksmTIQ31luBjj9zWLNg8mz1HUlPdp9/rqZEsY +YkYPnoDfNZA7JCVjPmtLcF+A1f/wrrZulKYWoW/yB4qGJipsTtJ44rXaNYjAv6+I3KVJzTkS MCQn4ztCsreDRn3OzZLamNgi6hZ4lhcqIOkJ//4uGGCl98QPwCPlx1ZiRL/m+1LKQNSC5q5dA wCtI7xPMRaARSZQjDOofEQT0g+zEaHR+EnFLt6lJqhl14kce82JQiKRZc+PLm+7G/TerClB0V D32YA6OAAUxfBTPxa6gE9mqraqugUft9yO1yGksfNudtw45+EObOosAj4vhw9xDX1DSBTC/5R InIgWYIOPZ2ACW+THdCN+lD7fITPpJOq0JK8lsiTRG9SEDUEiq0txFPcAgd652AxeO5zCJoMQ VPGu3PewS8Ks+rRRvlidGdnl4h54Y9EGMztQeUDMrAEgLcDy4oNKmn6W5ADHXIaCjlPS4d4Hj 46zmKsUxGFye1nQ5eeXS+WVHORY57gaSnPhDcpUr2dWPl/OGbN054l9a9skXNdoDkPMQBAz8L K6XNaqBPWjZhhP4qksMSXSsVP2mmA+TRsaA5saN/Pmy6HPnUyJGBqgeye4gpEUU3xMJbYqfpE S9vXFN9KdqqzoQ99wVB2U9WtvYSIaJSOSZh8+sl1B4MtvaJ3Rjc5OAlZQg8cLGy+IUo4= Cc: Alexandre Courbot , Arnd Bergmann , Stephen Warren , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" A newly merged patch to configure the XBAR caused a build failure in some configurations: drivers/gpu/drm/tegra/sor.c: In function 'tegra_sor_set_pinmux': drivers/gpu/drm/tegra/sor.c:252:10: error: implicit declaration of function 'pinctrl_lookup_state' [-Werror=implicit-function-declaration] state = pinctrl_lookup_state(sor->pinctrl, name); ^~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tegra/sor.c:252:8: error: assignment makes pointer from integer without a cast [-Werror=int-conversion] state = pinctrl_lookup_state(sor->pinctrl, name); The functions are declared in linux/pinctrl/consumer.h, so we need to include that file instead of relying on the inclusion to happen through another header. Signed-off-by: Arnd Bergmann Fixes: 9e9d1315f4f4 ("drm/tegra: sor: Make XBAR configurable per SoC") --- drivers/gpu/drm/tegra/sor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index 8425edaa4e8a..9ff6aa7585cf 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include