From patchwork Tue Oct 2 20:58:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10624029 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 CE99D15A7 for ; Tue, 2 Oct 2018 21:04:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBCFA28481 for ; Tue, 2 Oct 2018 21:04:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFEDA28496; Tue, 2 Oct 2018 21:04:07 +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 E97B828481 for ; Tue, 2 Oct 2018 21:04:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E07EB6E38E; Tue, 2 Oct 2018 21:04:04 +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 0358E6E38E for ; Tue, 2 Oct 2018 21:04:03 +0000 (UTC) Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1N2Ujn-1fjLJR1xXD-013rDP; Tue, 02 Oct 2018 22:58:38 +0200 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1N2Ujn-1fjLJR1xXD-013rDP; Tue, 02 Oct 2018 22:58:38 +0200 From: Arnd Bergmann To: Philipp Zabel , David Airlie Subject: [PATCH] drm/imx: move 'legacyfb_depth' definition out of #ifdef Date: Tue, 2 Oct 2018 22:58:26 +0200 Message-Id: <20181002205836.2323084-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:CAhRBA/In5ku2tFknwpua/SmjexO2s8uUXbcJNLzC5PYgbuZd5t WRNkhHlf8jY5YLZnOm6HVS0TMfrLgJyvuBDb/y8uic7D04WHnwuQQ5r2IlKyLnzF+7ASjSl u7TumGjPiHnbjFjnQvcOolCJAlhcvLEtgqZa+moT4oYVH+pFwDDXHTXUE1kFqx3RAGHOn+o PbOQ+5fXwzHYBHjjDOa/A== X-UI-Out-Filterresults: notjunk:1;V01:K0:R0WREHdv5/U=:l74d+7B21MrNmgusVfNI3U wmdeQaEg8L5MQ113AuwAb/6dsjIrdAyXyaiya7TNew7TfZXPqQiaSx4gH5MsJCkjyVwH9mEmy EFHjKj+FlPxSIRURv1a/Tx42yKnnBhpiIxwQs6iYeEOty9bVDGsA4mcjxOavtoolTR4m+TbxK dq7AFo6YwQGZC2wKeO1YGkiewpd2TO2QCDLs4jMo3k0TciXreHTEIrAHYh389uWjUGxTNZBVH ju0Tyc2ldgXruSzAZzmMrLdWBsEKWf/9txAJsDvB35JvdY0RECpE1dL/hzzcBGZ7rC9zDvu04 D3ZCpd0OeEtdHzBziwedxAfqj8IJiMmEDB9SNTwE8J+42balYevMikCqIatqkvbzP961Db2eV NqAch5Pl6Fr8Q11rWJH0u/S5fHYY+WCvR8bBvqo5Y8Xh0rXESRpja3Hef5iOj/n58/2sg/EU1 Z9wWidLYG7eLmYIXyInME2ZG9d78DociQA0YnEUHW5PcNofBItZF5C6iUer23O1OzE6u2N8rb pVJFxUWnOIH2Ep0OlF1fVbwRY+Eprf7R8H6NsjVFcWixvx2/s47zOY26SVEy8qIXrgHavHX5h Mqj1HkWP47Hc6Dr3U9o0EI8k0huDHqi44EB92mgdscNagadcUF5ibUo/QAAhzB29wr5BUokEQ uZmORikjongs6Jx4zrzdK/AwpZ4ZBR/thfYg1PHYHyvLJt39AKxqz24RJENccMyqzhIc= 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 now referenced unconditionally, but still declared in an #ifdef: 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 #ifdef so it can always be accessed. 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);