From patchwork Sat Dec 7 23:35:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 3305261 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 087D49F3B8 for ; Sat, 7 Dec 2013 23:36:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 32A22202FE for ; Sat, 7 Dec 2013 23:36:15 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1B17A20306 for ; Sat, 7 Dec 2013 23:36:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 14BD7FACB3; Sat, 7 Dec 2013 15:36:12 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com [209.85.216.173]) by gabe.freedesktop.org (Postfix) with ESMTP id A5739FACAA for ; Sat, 7 Dec 2013 15:36:07 -0800 (PST) Received: by mail-qc0-f173.google.com with SMTP id m20so1627503qcx.18 for ; Sat, 07 Dec 2013 15:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JMjhDBl/dPDvW9j1EDaIiJqEfXNZl5E7s4T7nKHWHME=; b=fLa4ZQfCuUUq9dpMVtKWEOGPFBD2ZVD8UUsIE+oj1bpKSA8vSUaAqXNKjV+uWaDu4j c+E06SCW3ht3tnDbGzm6qbutC0fJP8C0Xvmwc6g1O/wpIyi2k1Cy7MPZGbJTLm5nq3Hd iivjjt2bahhpbw4J5sYNeWNTi+ebeBYGI2eSmQzXBS98P1XdxsrgI2WWwpPPSzbrSXVz NXUynoHdCUcU7PjG3dCRUAC4m/rQUVPuUujL4c8gcLQfYqZccg5hzdo/xYUhFnnF+k0K uC/qRXxHpGExo508CORji8wbkXwqfEkUkJj6oR3rE1Vi2Y1dgsp/A9sLbmnAFqx2ECZw JnoQ== X-Received: by 10.49.116.5 with SMTP id js5mr20282266qeb.36.1386459367225; Sat, 07 Dec 2013 15:36:07 -0800 (PST) Received: from localhost (pool-108-20-244-90.bstnma.east.verizon.net. [108.20.244.90]) by mx.google.com with ESMTPSA id n7sm13508211qai.1.2013.12.07.15.36.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Dec 2013 15:36:06 -0800 (PST) From: Rob Clark To: dri-devel@lists.freedesktop.org Subject: [PATCH 01/13] drm/msm: COMPILE_TEST support Date: Sat, 7 Dec 2013 18:35:33 -0500 Message-Id: <1386459345-17731-2-git-send-email-robdclark@gmail.com> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1386459345-17731-1-git-send-email-robdclark@gmail.com> References: <1386459345-17731-1-git-send-email-robdclark@gmail.com> Cc: linux-arm-msm@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 With a simple stub, we can get COMPILE_TEST support. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/Kconfig | 3 +-- drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c | 2 -- drivers/gpu/drm/msm/msm_drv.h | 11 +++++++++++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig index f39ab75..bb103fb 100644 --- a/drivers/gpu/drm/msm/Kconfig +++ b/drivers/gpu/drm/msm/Kconfig @@ -2,8 +2,7 @@ config DRM_MSM tristate "MSM DRM" depends on DRM - depends on ARCH_MSM - depends on ARCH_MSM8960 + depends on (ARCH_MSM && ARCH_MSM8960) || (ARM && COMPILE_TEST) select DRM_KMS_HELPER select SHMEM select TMPFS diff --git a/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c b/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c index 5e0dcae..3799ccc 100644 --- a/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c +++ b/drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c @@ -15,8 +15,6 @@ * this program. If not, see . */ -#include - #include "mdp4_kms.h" #include "drm_crtc.h" diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h index d39f086..8823a88 100644 --- a/drivers/gpu/drm/msm/msm_drv.h +++ b/drivers/gpu/drm/msm/msm_drv.h @@ -31,6 +31,17 @@ #include #include + +#if defined(CONFIG_ARCH_MSM) +# include +#elif defined(CONFIG_COMPILE_TEST) +/* stubs we need for compile-test: */ +static inline struct device *msm_iommu_get_ctx(const char *ctx_name) +{ + return NULL; +} +#endif + #ifndef CONFIG_OF #include #include