From patchwork Wed Sep 26 19:38:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10616677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5F37D112B for ; Wed, 26 Sep 2018 19:40:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D6B52B6AF for ; Wed, 26 Sep 2018 19:40:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4140F2B6F0; Wed, 26 Sep 2018 19:40:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0612D2B6AF for ; Wed, 26 Sep 2018 19:40:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C7F106E4BE; Wed, 26 Sep 2018 19:40:34 +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.130]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4952B88EE4 for ; Wed, 26 Sep 2018 19:39:48 +0000 (UTC) Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1M9Ib1-1g9x0w120N-006M12; Wed, 26 Sep 2018 21:38:49 +0200 From: Arnd Bergmann To: Philipp Zabel , David Airlie Subject: [PATCH] drm/imx: fix build failure without CONFIG_DRM_FBDEV_EMULATION Date: Wed, 26 Sep 2018 21:38:36 +0200 Message-Id: <20180926193846.2490574-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:Gz+H6gNv9Glg2j0PPAgu2dIx/vRoZdb1+bnx2nthpW2drusOC7A 2SkxIBR8zbSSxZJs+XpFZHhBSrAqS7kq16TlvuetwSrVyPmrsp6UelcM6E9g7fembxN/gDJ LoX6pNwiDBLSvDtYSW2oclqz7Bl1hZEtnjaLeITZYa4q/JGHWVmJEoQnOgZD379ndnOmRQ+ C9glDt1HTZwfLUIJshO9w== X-UI-Out-Filterresults: notjunk:1;V01:K0:Ty3JvOnbWoc=:H7jehdhza8AqlSrbwCT6XA 0UYKv3tYIlwesSTRmQGR0ruuu07bOFp4MzWVxKD82R1yBgQW0kRrjp2rt4MwxyDe76xnrmsV2 pcqXaBmXiueL2fLYVNW7OFEFkvjaVfqTc3qFoS+T2tBxG44cqiCr1nMfgsTAj1ZnIagWvg+hy XfSr301wvl4wlNXCOWtsxO2+EfQPMgTMRHEVw5ekBjTForsQHsgtA9mvPT7zO4n1c4wdIM3k3 neD0NMmhddVnJ1zmdXclwaBMGIf8mveS45IJWk/o/XCYeanL5f1gDxGM+nnGyC4TRVwvVUdO2 zkzAicoEDvwb/VaD4/oIo8UKGcJ2RD/xSkaZ7dFtPhPkw3tRCJYBSkkamSJ9NFZ77TFoaOsNO bh75Bjz4sxfAIo7nUhem+VRNSwqySGxCvO3RpIWMPq8U6M/Da9XEHMAY9f6BuWOSfLSuGc7aT ddTBEdJ0kMGhLkPYWkbwli/x+YHEPcFOQt91OonXvf9+ZMCYS78WiPBw0pIXSVMXgHVlnfG9u jO8l6Zu83jd9KwP4F+r0bJ+9gUB5dWKnAmUUNmYbRunVEnApeRQgJvUvxOTc1QDj3yDChWAfB 2BMJsSmtiaS0WOMrIfR/f3n7bkexoMMknxMh2udCzY6Rdwc2d2FMznsQL7jnx30nMcusErBd9 Fj+OTmqXxRTLfjE3D5R1VX02nsOjgE1prAEXeh4fDCkM6B5te/YwBnp8NmfBcjYQxWzU= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Souptick Joarder , Thomas Zimmermann , Leonard Crestez , Sam Ravnborg MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The variable is declared in an #ifdef section, but the user is now unconditional, which leads to a build failure: drivers/gpu/drm/imx/imx-drm-core.c: In function 'imx_drm_bind': drivers/gpu/drm/imx/imx-drm-core.c:264:6: error: 'legacyfb_depth' undeclared (first use in this function); did you mean 'lockdep_depth'? Remove the remaining #ifdef as well. Fixes: f53705fd9803 ("drm/imx: Use drm_fbdev_generic_setup()") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/imx/imx-drm-core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index a70f3131a377..0e6942f21a4e 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -35,10 +35,8 @@ #define MAX_CRTC 4 -#if IS_ENABLED(CONFIG_DRM_FBDEV_EMULATION) static int legacyfb_depth = 16; module_param(legacyfb_depth, int, 0444); -#endif DEFINE_DRM_GEM_CMA_FOPS(imx_drm_driver_fops);