]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe: remove a number of superfluous compat macros
authorJani Nikula <jani.nikula@intel.com>
Tue, 17 Sep 2024 16:14:00 +0000 (19:14 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 19 Sep 2024 13:37:16 +0000 (16:37 +0300)
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
drivers/gpu/drm/xe/display/intel_fbdev_fb.c
drivers/gpu/drm/xe/xe_bo.h
drivers/gpu/drm/xe/xe_bo_types.h

index c425349eac34dcd7b957e53ccf81f2ac5c35c5a5..ca95fcd098ec7253f5b33498bd1c26fdcfdfff0f 100644 (file)
@@ -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;
 }
index dbfb3209615dfadb090e38d48c0f1f91aca93851..2af2d0b105773af036a3f2a3855be8dc0ac7f07a 100644 (file)
@@ -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
index 2ed558ac2264a69cc093496d2bd66f812b62bb91..8b92017750816bd35d86a11f8f543b122788fbdb 100644 (file)
@@ -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