drm/msm: COMPILE_TEST support
authorRob Clark <robdclark@gmail.com>
Wed, 27 Nov 2013 21:29:59 +0000 (16:29 -0500)
committerRob Clark <robdclark@gmail.com>
Thu, 9 Jan 2014 19:38:47 +0000 (14:38 -0500)
With a simple stub, we can get COMPILE_TEST support.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/Kconfig
drivers/gpu/drm/msm/mdp4/mdp4_dtv_encoder.c
drivers/gpu/drm/msm/msm_drv.h

index f39ab7554fc992175630831acf28bbf223cd9f50..bb103fb4519ead8c9c1e698a341d50273fc5da94 100644 (file)
@@ -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
index 5e0dcae70ab5d14999e2991c113a5835adda3900..3799ccc517b2c6a06fefbd75ca36b7836153b20b 100644 (file)
@@ -15,8 +15,6 @@
  * this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <mach/clk.h>
-
 #include "mdp4_kms.h"
 
 #include "drm_crtc.h"
index d39f0862b19ebe8db2a74fdcedbb8a52086df3a7..a4c52cfe7fca850b25c58593b17ceaaa8ddfac09 100644 (file)
 #include <linux/types.h>
 #include <asm/sizes.h>
 
+
+#if defined(CONFIG_COMPILE_TEST) && !defined(CONFIG_ARCH_MSM)
+/* 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 <mach/board.h>
 #include <mach/socinfo.h>