diff options
author | Rob Clark <robdclark@gmail.com> | 2013-11-28 01:29:59 +0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2014-01-09 23:38:47 +0400 |
commit | 3083894f7f2963bb017c79636cd064eb0d7f05da (patch) | |
tree | c39a6e55dc974b4d0b905e4fc0075b7a6dad2c05 /drivers/gpu/drm/msm/msm_drv.h | |
parent | 859ae233cd0ee76b6143f948ba1cb6b0b4c342f8 (diff) | |
download | linux-3083894f7f2963bb017c79636cd064eb0d7f05da.tar.xz |
drm/msm: COMPILE_TEST support
With a simple stub, we can get COMPILE_TEST support.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_drv.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h index d39f0862b19e..a4c52cfe7fca 100644 --- a/drivers/gpu/drm/msm/msm_drv.h +++ b/drivers/gpu/drm/msm/msm_drv.h @@ -31,6 +31,15 @@ #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> |