]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix i915_error_state_store error defination
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Fri, 17 Jan 2020 07:34:36 +0000 (15:34 +0800)
committerJani Nikula <jani.nikula@intel.com>
Sun, 9 Feb 2020 17:23:31 +0000 (19:23 +0200)
commitfc926d3c8ac132e644a56f55358a52028788b978
tree1eb9a61c8b2c3d90086c3485b07fc0c021453066
parent5329181dae9f28ec22f847f2127e81d505c22719
drm/i915: Fix i915_error_state_store error defination

Since commit 79e295ac06a21 ("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: 79e295ac06a2 ("drm/i915: Start chopping up the GPU error capture")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200117073436.6507-1-zhangxiaoxu5@huawei.com
(cherry picked from commit 04062c58faafddf62006c6f8e5077dc050e8207e)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gpu_error.h