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: 148017 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp5628039lji; Tue, 2 Oct 2018 13:58:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV609yOmjKsgelRCJqd0t2KhycpGm/o/S1MmD9dX3g5obiHIwItR4TG7NrMUzu/Z9c8gHHF0h X-Received: by 2002:a63:6bc2:: with SMTP id g185-v6mr16113180pgc.25.1538513936330; Tue, 02 Oct 2018 13:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538513936; cv=none; d=google.com; s=arc-20160816; b=GK0JrJS15CD/bR3SrxGsMUKrMFtqO3tEDaKrxkEwlZtaH7DhGYShIQQHMO4uIwwD/T 8FiiZusS44ErGSp6a06EZvk30BvXIrxjfWtRcrknEzh4OmquKcOM4SZYepysBvDuwwcZ QlHL0nN+OW7Ao3KW3JGQhN6qp8MBfGPDS4q69d4EkT57wcSFvjqW5hYKeVqRiHvquE+2 3sot7qFd6bg3SkJ7mJC/i5KuTVs0Qwc6NcEr5JpJjQidoCfZ5VrGFybwMQNfYvc0Xj4n QS5vU4He6m+NxRz4A3mLRFS0RIAcPpgpME+pCdYEnPq10itjJ5zscG1sGtkJ+MfYFkdb izqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=JZJIEzYnli3XeOyUpiQ0iKil/wpxNkQOL6R4Eq4Fj8Y=; b=SfOsBIuQw2gJkLoP56Ad1LgvaQztjDJEhKmPKuwGv+zUFfpfjBI5Dk7sR3KF+8GQWA 1EFls2jKMQsh+dTg1rNGsx+it5J+F91RoSCwlicpXCZsB/VRaKkZIa4s30ydslKzBZ7R o4hSmLfo845RMnv61tJH8ou2h54huAizRsrWlK2e2kaS+FHcPQYhgnDqlWRm67F5f6L1 +GPGA6Rg/SxoAloDro+IKuy9DZHDfV4GYhYOCD492VbNS5NDZc5p5RJtwJuvZCz4w25U IZFyhoodNbkOPs2fCe+iGhUuKaxhd63pNSY+7TOWBHTw+JOMCiol4JmR2yNUqIFQO3IG 0VVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3-v6si16741067pld.281.2018.10.02.13.58.56; Tue, 02 Oct 2018 13:58:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727857AbeJCDoH (ORCPT + 32 others); Tue, 2 Oct 2018 23:44:07 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:51749 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726572AbeJCDoH (ORCPT ); Tue, 2 Oct 2018 23:44:07 -0400 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 Cc: Arnd Bergmann , Lucas Stach , =?utf-8?q?Noralf_Tr=C3=B8nnes?= , Sam Ravnborg , Daniel Vetter , Souptick Joarder , Leonard Crestez , Thomas Zimmermann , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org 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:UfBjkdJEm2g=:bcbIVwfp/wZQlW9EZzKwFs p9alzm+/XArwe90s56diugEo5nbHDbGZ+GDgHtK6UXLJ6AHrfqHNeLb436FH7moJJ6ZFhVlkB muJkYBLFPIAVGRUSwgjgJUoitva06skA9vCSxU6nc2zR99ytiEEdslI4YthuPVrX6QE5QElx6 pJF0Y74Sc/5KCcsXOCUpxwMN0v2nWxjORM3y9SvKqzjT9dgTaNM2uYoFpcZqDlF0Mns1oKy3r T+1FkO0h1QOQxaokTTTIq8oSi17ydYiwaNrqytQFINRwm0E3S8TpeiJropT38o/B/bodADzie MHxe5z1CC8ra7eMmEGTKwTT8jkosXeWO8B9IQTUlTqtDPZgY+0ql2ZVw3juDTF7V9244OSZPZ p1/7tTMXWiU65pxr62uLo7P/Z/7Z2DDqph4H/sEWybTe6PNPj1WWe0BRrIeTQ51QJdXRaP6d0 q8jEwtWsQk4C/WVdt5oBV/Y3Fe06XwOpcuWkVpyPVqO0QHfJIO9f8p3g5le3KT4NnOfqfyyhU GA8DNmEUBnxY4vYVkIt+IRsD+jL6TLJzyOhNdQc19nNk7/5z959qfjRyUGJ0IOFsW5dTvnzue a4GVSVN0JOBZ7dGD3DmQ6myEE0lhztVyTcJev7mDY9ft+kM6NwdIoUzWl9Vvk4LSONENOrGz3 vH68bJGkl65Vu3CPAi+3tB9MaB3ou5d/HiEGkuFWtYU0KoVtsC75/1sywDiYn30WpQOA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.18.0 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);