提交 f57635f9 编写于 作者: D Dan Carpenter 提交者: Zheng Zengkai

drm/vc4: fix argument ordering in vc4_crtc_get_margins()

stable inclusion
from stable-5.10.51
commit 796554d3d68fe9fa05f55ecd98c82961a62212e7
bugzilla: 175263 https://gitee.com/openeuler/kernel/issues/I4DT6F

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=796554d3d68fe9fa05f55ecd98c82961a62212e7

--------------------------------

[ Upstream commit e590c2b0 ]

Cppcheck complains that the declaration doesn't match the function
definition.  Obviously "left" should come before "right".  The caller
and the function implementation are done this way, it's just the
declaration which is wrong so this doesn't affect runtime.
Reported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMaxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/YH/720FD978TPhHp@mwandaSigned-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 c4a4cc9b
...@@ -837,7 +837,7 @@ void vc4_crtc_destroy_state(struct drm_crtc *crtc, ...@@ -837,7 +837,7 @@ void vc4_crtc_destroy_state(struct drm_crtc *crtc,
void vc4_crtc_reset(struct drm_crtc *crtc); void vc4_crtc_reset(struct drm_crtc *crtc);
void vc4_crtc_handle_vblank(struct vc4_crtc *crtc); void vc4_crtc_handle_vblank(struct vc4_crtc *crtc);
void vc4_crtc_get_margins(struct drm_crtc_state *state, void vc4_crtc_get_margins(struct drm_crtc_state *state,
unsigned int *right, unsigned int *left, unsigned int *left, unsigned int *right,
unsigned int *top, unsigned int *bottom); unsigned int *top, unsigned int *bottom);
/* vc4_debugfs.c */ /* vc4_debugfs.c */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册