mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
drm/xe: remove a number of superfluous compat macros
Some compat macros have inadvertently been sprinkled in xe core headers. Remove the final users and the macros. Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Acked-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/418185993c5825a54ac3f87a85463c799c91e47d.1726589119.git.jani.nikula@intel.com
This commit is contained in:
parent
2ae68b013c
commit
a1dc3a738e
|
|
@ -71,7 +71,7 @@ struct intel_framebuffer *intel_fbdev_fb_alloc(struct drm_fb_helper *helper,
|
|||
goto err;
|
||||
}
|
||||
|
||||
drm_gem_object_put(intel_bo_to_drm_bo(obj));
|
||||
drm_gem_object_put(&obj->ttm.base);
|
||||
|
||||
return to_intel_framebuffer(fb);
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ int intel_fbdev_fb_fill_info(struct drm_i915_private *i915, struct fb_info *info
|
|||
XE_WARN_ON(iosys_map_is_null(&obj->vmap));
|
||||
|
||||
info->screen_base = obj->vmap.vaddr_iomem;
|
||||
info->screen_size = intel_bo_to_drm_bo(obj)->size;
|
||||
info->screen_size = obj->ttm.base.size;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -316,8 +316,6 @@ static inline unsigned int xe_sg_segment_size(struct device *dev)
|
|||
return round_down(max / 2, PAGE_SIZE);
|
||||
}
|
||||
|
||||
#define i915_gem_object_flush_if_display(obj) ((void)(obj))
|
||||
|
||||
#if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
|
||||
/**
|
||||
* xe_bo_is_mem_type - Whether the bo currently resides in the given
|
||||
|
|
|
|||
|
|
@ -78,7 +78,4 @@ struct xe_bo {
|
|||
struct list_head vram_userfault_link;
|
||||
};
|
||||
|
||||
#define intel_bo_to_drm_bo(bo) (&(bo)->ttm.base)
|
||||
#define intel_bo_to_i915(bo) to_i915(intel_bo_to_drm_bo(bo)->dev)
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user