From patchwork Sat May 2 04:08:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6314101 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 095319F1C2 for ; Sat, 2 May 2015 06:17:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D276203AC for ; Sat, 2 May 2015 06:17:09 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 5E341203AA for ; Sat, 2 May 2015 06:17:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7978A6E0F8; Fri, 1 May 2015 23:17:07 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 7C8566E0EF for ; Fri, 1 May 2015 21:08:39 -0700 (PDT) Received: by pdbqa5 with SMTP id qa5so110037719pdb.1 for ; Fri, 01 May 2015 21:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=l5xJ4X9/zY+/RpHC4zML6Fd33CaySaEmt3BXeqqHccc=; b=lZ8lh2uUTEdTwxqK5+DJJZKozmeGoSP8R+C+LUudgqE+kiT1VcyRz/Zs0w4uRkQfCz bFAUL82iKL+RirNYy9anbQ+V0GRT4CSjClq5Loz11AdUVopwmlprDStVN6MzlRaShqPD Q5WTMaS63i3Kfov+9upeHf0m6Stsdyqk+AHW4c5klLMBttdb1dgh4TAZMF4qOPf668KM SgGLpX5FTafU6IzxSVxIyRfC5ZBWFCwgEB7pK0GLtsTqLrZT9zjgcoVHOFed9ZsESmhI K6AC+uUbD67VCycA+gLuusUayPQtth9RfJWhixGoSE/Kbs7raOe59V5qddaM2IzybKnS HRXw== X-Received: by 10.68.90.132 with SMTP id bw4mr23168930pbb.102.1430539719207; Fri, 01 May 2015 21:08:39 -0700 (PDT) Received: from localhost.localdomain ([14.33.155.254]) by mx.google.com with ESMTPSA id eh4sm6205592pbd.69.2015.05.01.21.08.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 May 2015 21:08:38 -0700 (PDT) From: Krzysztof Kozlowski To: Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , David Airlie , Kukjin Kim , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/exynos: Fix build breakage on !DRM_EXYNOS_FIMD Date: Sat, 2 May 2015 13:08:26 +0900 Message-Id: <1430539706-2945-1-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.4 X-Mailman-Approved-At: Fri, 01 May 2015 23:17:06 -0700 Cc: Krzysztof Kozlowski 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Selecting CONFIG_FB_S3C disables CONFIG_DRM_EXYNOS_FIMD leading to build error: drivers/built-in.o: In function `exynos_dp_dpms': binder.c:(.text+0xd6a840): undefined reference to `fimd_dp_clock_enable' binder.c:(.text+0xd6ab54): undefined reference to `fimd_dp_clock_enable' Signed-off-by: Krzysztof Kozlowski --- drivers/gpu/drm/exynos/exynos_drm_fimd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.h b/drivers/gpu/drm/exynos/exynos_drm_fimd.h index b4fcaa568456..db67f3d9786d 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.h +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.h @@ -10,6 +10,10 @@ #ifndef _EXYNOS_DRM_FIMD_H_ #define _EXYNOS_DRM_FIMD_H_ +#ifdef CONFIG_DRM_EXYNOS_FIMD extern void fimd_dp_clock_enable(struct exynos_drm_crtc *crtc, bool enable); +#else +static inline void fimd_dp_clock_enable(struct exynos_drm_crtc *crtc, bool enable) {}; +#endif #endif /* _EXYNOS_DRM_FIMD_H_ */