diff options
author | Yang Xiong <Yang.Xiong@amd.com> | 2020-09-02 16:29:10 +0800 |
---|---|---|
committer | Yang Xiong <Yang.Xiong@amd.com> | 2020-09-03 18:39:19 +0800 |
commit | f9896ea4089f533f4024cc564777b199173311b6 (patch) | |
tree | 3a424ddcfa593c3e8a852da85e7b637b6a9735e7 /include | |
parent | d4300369d40029dd7020e6d44d543c188d1a32c4 (diff) |
drm/amdkcl: test whether drm checking on dev->dev_private
introduced by v5.5-rc2-1531-ge62bf83aa1bb
This patch is caused by 'drm/amdgpu: Embed drm_device into amdgpu_device (v2)'
Signed-off-by: Yang Xiong <Yang.Xiong@amd.com>
Reviewed-by: Flora Cui <flora.cui@amd.com>
Change-Id: If527052c8053141eadd77cbf77e4fc16850808b5
Diffstat (limited to 'include')
-rw-r--r-- | include/kcl/backport/kcl_drm_backport.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/kcl/backport/kcl_drm_backport.h b/include/kcl/backport/kcl_drm_backport.h index f32e51d37d7d..8267885a2f24 100644 --- a/include/kcl/backport/kcl_drm_backport.h +++ b/include/kcl/backport/kcl_drm_backport.h @@ -77,6 +77,14 @@ int _kcl_drm_syncobj_find_fence(struct drm_file *file_private, #define AMDKCL_AMDGPU_DEBUGFS_CLEANUP #endif +/* + * commit v5.5-rc2-1531-ge62bf83aa1bb + * drm/irq: remove check on dev->dev_private + */ +#if DRM_VERSION_CODE < DRM_VERSION(5, 6, 0) +#define AMDKCL_CHECK_DRM_DEVICE_DEV_PRIVATE +#endif + #ifndef HAVE_DRM_GEM_OBJECT_LOOKUP_2ARGS static inline struct drm_gem_object * _kcl_drm_gem_object_lookup(struct drm_file *filp, u32 handle) |