[v5,1/4] drm/i915/gt: make nop_clear_range public
Commit Message
Function nop_clear_range can be used instead of local implementations.
Signed-off-by: Andrzej Hajda <andrzej.hajda@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(-)
Comments
Hi Andrzej,
On Wed, Mar 08, 2023 at 04:39:03PM +0100, Andrzej Hajda wrote:
> Function nop_clear_range can be used instead of local implementations.
>
> Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Andi
@@ -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)
{
}
@@ -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