Now that drm_gpuva_op_map has a flags field, plumb it through to the
helper that populates a drm_gpuva.

This helper is only used by drm_gpuva_remap(), which in turn is only
used by drivers which do not use flags at all (panthor, imagination),
so this change has no effect on existing drivers.

Signed-off-by: Asahi Lina <l...@asahilina.net>
---
 include/drm/drm_gpuvm.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/drm/drm_gpuvm.h b/include/drm/drm_gpuvm.h
index 
dfeec61908b1a8295ae08b26bef211d3d4fda85b..16e6dcb8755bfedca5d1f184d72db9b2e9b857d0
 100644
--- a/include/drm/drm_gpuvm.h
+++ b/include/drm/drm_gpuvm.h
@@ -168,12 +168,14 @@ struct drm_gpuva *drm_gpuva_find_prev(struct drm_gpuvm 
*gpuvm, u64 start);
 struct drm_gpuva *drm_gpuva_find_next(struct drm_gpuvm *gpuvm, u64 end);
 
 static inline void drm_gpuva_init(struct drm_gpuva *va, u64 addr, u64 range,
-                                 struct drm_gem_object *obj, u64 offset)
+                                 struct drm_gem_object *obj, u64 offset,
+                                 enum drm_gpuva_flags flags)
 {
        va->va.addr = addr;
        va->va.range = range;
        va->gem.obj = obj;
        va->gem.offset = offset;
+       va->flags = flags;
 }
 
 /**
@@ -1088,7 +1090,7 @@ static inline void drm_gpuva_init_from_op(struct 
drm_gpuva *va,
                                          struct drm_gpuva_op_map *op)
 {
        drm_gpuva_init(va, op->va.addr, op->va.range,
-                      op->gem.obj, op->gem.offset);
+                      op->gem.obj, op->gem.offset, op->flags);
 }
 
 /**

-- 
2.47.1

Reply via email to