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: 6314001 Return-Path: X-Original-To: patchwork-linux-arm@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 974F39F32E for ; Sat, 2 May 2015 04:12:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B0ADA203C3 for ; Sat, 2 May 2015 04:12:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BE597203C1 for ; Sat, 2 May 2015 04:12:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YoOjg-0007EC-AW; Sat, 02 May 2015 04:09:04 +0000 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YoOjd-0007Cd-5F for linux-arm-kernel@lists.infradead.org; Sat, 02 May 2015 04:09:01 +0000 Received: by pdea3 with SMTP id a3so110073483pde.3 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150501_210901_245123_C2CFAA8F X-CRM114-Status: UNSURE ( 8.06 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: Krzysztof Kozlowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=ham 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_ */