[Intel-gfx] [PATCH] drm/i915: Fix slightly botched merge in __reloc_entry_gpu
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Thu Sep 10 11:12:25 UTC 2020
This function should be an int, not a bool.
Presumably because we had the same 2 reverts in a slightly different
way, git got confused.
Thanks to Dan for reporting. :)
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
Cc: Dave Airlie <airlied at redhat.com>
---
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
index 804339255df1..5509946f1a1d 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
@@ -1437,7 +1437,7 @@ static unsigned long vma_phys_addr(struct i915_vma *vma, u32 offset)
return addr + offset_in_page(offset);
}
-static bool __reloc_entry_gpu(struct i915_execbuffer *eb,
+static int __reloc_entry_gpu(struct i915_execbuffer *eb,
struct i915_vma *vma,
u64 offset,
u64 target_addr)
@@ -1456,7 +1456,7 @@ static bool __reloc_entry_gpu(struct i915_execbuffer *eb,
batch = reloc_gpu(eb, vma, len);
if (batch == ERR_PTR(-EDEADLK))
- return (s64)-EDEADLK;
+ return -EDEADLK;
else if (IS_ERR(batch))
return false;
base-commit: 877d8c074302c20ac0759d1a4f689c14aada420d
--
2.28.0
More information about the Intel-gfx
mailing list