提交 c2cebbc4 编写于 作者: Z Zhang Xiaoxu 提交者: Jani Nikula

drm/i915: Fix i915_error_state_store error defination

Since commit 742379c0 ("drm/i915: Start chopping up the GPU error
capture"), function 'i915_error_state_store' was defined and used with
only one parameter.

But if no 'CONFIG_DRM_I915_CAPTURE_ERROR', this function was defined
with two parameter.

This may lead compile error. This patch fix it.

Fixes: 742379c0 ("drm/i915: Start chopping up the GPU error capture")
Reported-by: NHulk Robot <hulkci@huawei.com>
Signed-off-by: NZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Reviewed-by: NAndi Shyti <andi.shyti@intel.com>
Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200117073436.6507-1-zhangxiaoxu5@huawei.com
(cherry picked from commit 04062c58)
Signed-off-by: NJani Nikula <jani.nikula@intel.com>
上级 e73c1486
......@@ -314,8 +314,7 @@ i915_vma_capture_finish(struct intel_gt_coredump *gt,
}
static inline void
i915_error_state_store(struct drm_i915_private *i915,
struct i915_gpu_coredump *error)
i915_error_state_store(struct i915_gpu_coredump *error)
{
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册