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: 3305271 Return-Path: X-Original-To: patchwork-linux-arm-msm@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 7726D9F3E2 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 A16CE20328 for ; Sat, 7 Dec 2013 23:36:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C35A20320 for ; Sat, 7 Dec 2013 23:36:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753229Ab3LGXgJ (ORCPT ); Sat, 7 Dec 2013 18:36:09 -0500 Received: from mail-qe0-f44.google.com ([209.85.128.44]:58099 "EHLO mail-qe0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754848Ab3LGXgH (ORCPT ); Sat, 7 Dec 2013 18:36:07 -0500 Received: by mail-qe0-f44.google.com with SMTP id nd7so1700934qeb.17 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 Cc: linux-arm-msm@vger.kernel.org, Rob Clark 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> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 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