[PATCH v5 1/4] drm/i915/gt: make nop_clear_range public
Andrzej Hajda
andrzej.hajda at intel.com
Wed Mar 8 15:39:03 UTC 2023
Function nop_clear_range can be used instead of local implementations.
Signed-off-by: Andrzej Hajda <andrzej.hajda at intel.com>
---
drivers/gpu/drm/i915/gt/intel_ggtt.c | 3 +--
drivers/gpu/drm/i915/gt/intel_gtt.h | 2 ++
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/intel_ggtt.c b/drivers/gpu/drm/i915/gt/intel_ggtt.c
index 842e69c7b21e49..b925da42c7cfc4 100644
--- a/drivers/gpu/drm/i915/gt/intel_ggtt.c
+++ b/drivers/gpu/drm/i915/gt/intel_ggtt.c
@@ -345,8 +345,7 @@ static void gen6_ggtt_insert_entries(struct i915_address_space *vm,
ggtt->invalidate(ggtt);
}
-static void nop_clear_range(struct i915_address_space *vm,
- u64 start, u64 length)
+void nop_clear_range(struct i915_address_space *vm, u64 start, u64 length)
{
}
diff --git a/drivers/gpu/drm/i915/gt/intel_gtt.h b/drivers/gpu/drm/i915/gt/intel_gtt.h
index 5a775310d3fcb5..c15a4892e9f45d 100644
--- a/drivers/gpu/drm/i915/gt/intel_gtt.h
+++ b/drivers/gpu/drm/i915/gt/intel_gtt.h
@@ -672,4 +672,6 @@ static inline struct sgt_dma {
return (struct sgt_dma){ sg, addr, addr + sg_dma_len(sg) };
}
+void nop_clear_range(struct i915_address_space *vm, u64 start, u64 length);
+
#endif
--
2.34.1
More information about the dri-devel
mailing list