OpenCloudOS-Kernel/drivers/gpu/drm/msm/disp
Nathan Huckleberry 0b33a33bd1 drm/msm: Fix return type of mdp4_lvds_connector_mode_valid
The mode_valid field in drm_connector_helper_funcs is expected to be of
type:
enum drm_mode_status (* mode_valid) (struct drm_connector *connector,
                                     struct drm_display_mode *mode);

The mismatched return type breaks forward edge kCFI since the underlying
function definition does not match the function hook definition.

The return type of mdp4_lvds_connector_mode_valid should be changed from
int to enum drm_mode_status.

Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://github.com/ClangBuiltLinux/linux/issues/1703
Cc: llvm@lists.linux.dev
Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Fixes: 3e87599b68 ("drm/msm/mdp4: add LVDS panel support")
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Patchwork: https://patchwork.freedesktop.org/patch/502878/
Link: https://lore.kernel.org/r/20220913205551.155128-1-nhuck@google.com
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
2022-09-30 16:57:53 +00:00
..
dpu1 drm/msm/dpu: get rid of cached flush_mask 2022-09-18 09:38:03 -07:00
mdp4 drm/msm: Fix return type of mdp4_lvds_connector_mode_valid 2022-09-30 16:57:53 +00:00
mdp5 drm/msm: lookup the ICC paths in both mdp5/dpu and mdss devices 2022-09-18 09:38:02 -07:00
mdp_common.xml.h drm/msm: Update generated headers 2022-03-04 11:50:41 -08:00
mdp_format.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03: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/disp: Export helper for capturing snapshot 2021-12-16 09:51:24 -08:00
msm_disp_snapshot.h drm/msm/disp: Export helper for capturing snapshot 2021-12-16 09:51:24 -08:00
msm_disp_snapshot_util.c drm/msm/disp: check the return value of kzalloc() 2022-04-06 09:13:46 -07:00