Skip to content

Commit

Permalink
drm/xe: remove a number of superfluous compat macros
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jani Nikula committed Sep 19, 2024
1 parent 2ae68b0 commit a1dc3a7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/xe/display/intel_fbdev_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;
}
2 changes: 0 additions & 2 deletions drivers/gpu/drm/xe/xe_bo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions drivers/gpu/drm/xe/xe_bo_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a1dc3a7

Please sign in to comment.