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: 147663 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1123228lji; Wed, 26 Sep 2018 12:39:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ESXUQ0nI4O8s98A+wYITLX1CcTsCVaDfD+hQeL+TaNgohZowQGSavSX6pNwZz7g59u18k X-Received: by 2002:a17:902:2e01:: with SMTP id q1-v6mr7541300plb.40.1537990793927; Wed, 26 Sep 2018 12:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537990793; cv=none; d=google.com; s=arc-20160816; b=SsW3jp9IJxMbxcwXbpjCN6f1W3B191yq9gYXbx4d6mNr7GmV9gRN4G6BXh48z8Zxay qIUm0uiTrAsNz7SxlhObTz8b7qW3woTkxgduyOy7DysZV6kafylN/ZoU/caP2UVR2n+y 21M4GM9LEl284Wf07T7GPjy3RUq8QD2bnWSPeZZE2tFhy3X0KuBM22qBoc4+W7BF5Cf1 5HmBqZN44EsYZXqg9X0pX8b/Nvfycix6S7GmZfukIvCNO1Tgjp6UqrW63cV5nMA4wByW yRvn6e+z2kDgz1KO0d0h0QJ/XSmyQwbzvfCNwqKLS7145q7SWVlVIjhr77mKPDz98HoG hZOQ== 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=0Gqufb+jFe+mKScAv+MtFkPQaCkvnsSB70u3wzGWu1Q=; b=MPNylXg2a5I46icImHSl7gS/f+2VA3CFG/QQmb/DIHwTkiaZ2HrFqVkIb73KX+KM2j rJehrwk33cVN0zLYZ9pjOyF80maVUDIGWMM4OvfiYmIu82NADVdMkpY6GxpD2PPEmp9B 32yKB/Dm8oL6W/zGGPKc9lLIq8XUCdwy6uef3hl61jO/67Rc/qpxXxGGl2ghHgHEmmxq p/QE6QPO32Aw88fnaPJggV65dGih9B8Jz/rfNAd6M7ojKMnK2Ub2kQmkOkBScdQUEDne X+Dsz2e+79lnCVEr5BNqHdZxGpZ25CwZFp/vabEZdAuUY2FacOtZE/Ig5XeWb+7annaB rx9A== 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 d6-v6si5498887pgq.316.2018.09.26.12.39.53; Wed, 26 Sep 2018 12:39:53 -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 S1727049AbeI0ByV (ORCPT + 32 others); Wed, 26 Sep 2018 21:54:21 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:52539 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbeI0ByV (ORCPT ); Wed, 26 Sep 2018 21:54:21 -0400 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 Cc: Arnd Bergmann , Lucas Stach , =?utf-8?q?Noralf_Tr=C3=B8nnes?= , Daniel Vetter , Sam Ravnborg , Souptick Joarder , Leonard Crestez , Thomas Zimmermann , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org 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= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 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);