From patchwork Fri Jan 15 10:52:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101164 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp461186lbb; Fri, 15 Jan 2016 02:53:03 -0800 (PST) X-Received: by 10.66.122.36 with SMTP id lp4mr13958237pab.31.1452855183705; Fri, 15 Jan 2016 02:53:03 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id 127si15877151pfa.4.2016.01.15.02.53.03; Fri, 15 Jan 2016 02:53:03 -0800 (PST) Received-SPF: pass (google.com: 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: 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 A16856EB44; Fri, 15 Jan 2016 02:53:02 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id AEDF76EB44 for ; Fri, 15 Jan 2016 02:53:01 -0800 (PST) Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0LkPdb-1ZjJCm48Il-00cN8L; Fri, 15 Jan 2016 11:52:56 +0100 From: Arnd Bergmann To: Dave Airlie Subject: [PATCH] drm: omap dss: add missing includes Date: Fri, 15 Jan 2016 11:52:54 +0100 Message-ID: <6010313.rYeAixWRHJ@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:BPDDF3QeF/urqktC6aUY78+QIdbkMonC6N/Q8CgjpEGfTIcUJ/p tJurz/x1jYv+P8FuM5dcyZlbCtzc1ggqAUL5DKdazCNqmQ88OchCEovQCYlUVs4snx8C74L oDNSyL/3epAXt8BMR4GHpBgLrtXlmetJhHLeGGtjl4+vdZ3IdyZ+sfEO5ICYKUwgik7DhQi R3QHBFYOlhHNzCwzcWMWg== X-UI-Out-Filterresults: notjunk:1; V01:K0:Tew1xsaUq6w=:4WTii5fZjHRNdMt7ho1ddv SJ4j17gObM2ZFhd9q5iUwRiMfrrlfkKH4oxNOMOH6MnaFAZjIiGsyPeOEheAihtnH+g6gyOFw 0M3IeLRaqxfZ9X7RpKy4EnVVrm7vQ/NN5WAX7hYmBPF4Q+OAP1PxrGSxovaQeObZNAARZdsOT 0djA3pmo419rpfEFNs+MhcbY3vffn4m1GX/MCdK0EjHnyWwC4N2QQdq+IW+z704usp2fNkou4 VFaf0sv/pdMP5OIq7xpWbijJtoflTr+ONge+n5YmvwAaek6J3jakij4tZEKwKbBenSubMefWm NQW2vZXMw9s53coIYF5echzbnYJWIkdfBTqx2BU8+sJ44p0hNQ8LsWSw0OwNEcb8jFeh4RVQs z/urMwC5f0a4gW4REyq0xGoanoq2KdnUhHMP/gLeBX2YQUChpWwiGt2TdvN+EqSLmXs1Lq+jj J7ORecnix5nV3Sq5lgGHosalj32t2qXlIQRbk+KHGWNGJtndAntkcjGdhCJhprgAtM5CtjuQW 7A0l9yO0zH4IjdRwF65UzaA+FMnX/1enl4t5xBkKnvUC1o/q/4CHobDhTsVVMmXhXOX+qRoIi F29une/tyjPf2xvECPlHIBxEubNJ+YzZgpSj14ZWSJWLxhY7MJOFQ1CzqbIApb+52nJw07wG5 ixkjlHh7rc+uuPlIYrJqmHed8hUPUJRS863WgGjE587+NUCFYsXgCAjBNk+XVfnVVzLIaDm8s puq2VoiPhwI6zzjO Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Tomi Valkeinen , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The omapdrm dss driver currently fails to build in some configurations when the pinctrl and seq_print declarations are not visible: omapdrm/dss/dss.c:1268:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration] omapdrm/dss/dss.c:1277:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration] omapdrm/dss/hdmi_wp.c:26:2: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration] omapdrm/dss/hdmi_pll.c:30:2: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration] omapdrm/dss/hdmi_phy.c:34:2: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration] This adds the appropriate include statements. Signed-off-by: Arnd Bergmann Fixes: 9960aa7cb58c ("drm/omap: move omapdss & displays under omapdrm") --- Found on ARM randconfig builds. I assume there are also configurations in which this is not needed because the headers get included through other headers, and I have not investigated exactly what options cause this as the fix seems obvious and harmless. diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c index f95ff319e68e..839b1b6bdbe4 100644 --- a/drivers/gpu/drm/omapdrm/dss/dss.c +++ b/drivers/gpu/drm/omapdrm/dss/dss.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi_phy.c b/drivers/gpu/drm/omapdrm/dss/hdmi_phy.c index 1f5d19c119ce..a872721a03a2 100644 --- a/drivers/gpu/drm/omapdrm/dss/hdmi_phy.c +++ b/drivers/gpu/drm/omapdrm/dss/hdmi_phy.c @@ -13,6 +13,8 @@ #include #include #include +#include + #include