[PATCH v3 3/9] fixup! drm/xe/display: Implement display support

Jouni Högander jouni.hogander at intel.com
Fri Dec 8 07:56:04 UTC 2023


We need to add i915_gem_object_get_dma_address stub to build
intel_cursor.h.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 .../gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h   | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h b/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h
index 996b4f4f27dc..d226c29f0e6a 100644
--- a/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h
+++ b/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h
@@ -12,6 +12,13 @@
 
 #define i915_gem_object_is_shmem(obj) ((obj)->flags & XE_BO_CREATE_SYSTEM_BIT)
 
+static inline dma_addr_t i915_gem_object_get_dma_address(const struct xe_bo *bo, pgoff_t n)
+{
+	/* Should never be called */
+	WARN_ON(1);
+	return n;
+}
+
 static inline bool i915_gem_object_is_tiled(const struct xe_bo *bo)
 {
 	/* legacy tiling is unused */
-- 
2.34.1



More information about the Intel-xe mailing list