linux-stable/drivers/gpu/drm/msm/disp
Nathan Chancellor e9afd45788 drm/msm/dpu: Remove commit and its uses in dpu_crtc_set_crc_source()
Clang warns:

drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:162:6: error: variable 'commit' is uninitialized when used here [-Werror,-Wuninitialized]
        if (commit)
            ^~~~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:106:32: note: initialize the variable 'commit' to silence this warning
        struct drm_crtc_commit *commit;
                                      ^
                                       = NULL
1 error generated.

The assignment and use of commit in the main body of
dpu_crtc_set_crc_source() were removed from v1 to v2 but the call to
drm_crtc_commit_put() at the end was not. Do that now so there is no
more warning.

Fixes: 78d9b458cc ("drm/msm/dpu: Add CRC support for DPU")
Link: https://github.com/ClangBuiltLinux/linux/issues/1493
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20211026142435.3606413-1-nathan@kernel.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
2021-10-26 09:29:54 -07:00
..
dpu1 drm/msm/dpu: Remove commit and its uses in dpu_crtc_set_crc_source() 2021-10-26 09:29:54 -07:00
mdp4 drm/msm/mdp4: Remove redundant null check before clk_prepare_enable/clk_disable_unprepare 2021-10-15 13:26:33 -07:00
mdp5 drm/msm/mdp5: Add configuration for MDP v1.16 2021-10-15 13:26:34 -07:00
mdp_common.xml.h drm/msm: Generated register update 2021-06-23 07:33:54 -07:00
mdp_format.c drm/msm: remove unlikely() from WARN_ON() conditions 2019-09-04 08:42:45 -07:00
mdp_kms.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
mdp_kms.h drm/msm/kms: Update msm_kms_init/destroy 2020-11-01 10:13:32 -08:00
msm_disp_snapshot.c drm/msm: make msm_disp_state transient data struct 2021-06-23 07:32:14 -07:00
msm_disp_snapshot.h Kbuild updates for v5.15 2021-09-03 15:33:47 -07:00
msm_disp_snapshot_util.c drm/msm/dp: Support up to 3 DP controllers 2021-10-18 14:28:30 -07:00