OpenCloudOS-Kernel/drivers/gpu/drm/msm/disp/mdp4
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
..
mdp4.xml.h drm/msm: Update generated headers 2022-03-04 11:50:41 -08:00
mdp4_crtc.c Merge tag 'drm-msm-next-2020-12-07' of https://gitlab.freedesktop.org/drm/msm into drm-next 2020-12-10 09:42:47 +10:00
mdp4_dsi_encoder.c drm/msm: allow compile time selection of driver components 2022-04-26 00:50:46 +03:00
mdp4_dtv_encoder.c drm/msm/mdp4: Remove unused downstream bus scaling apis 2020-09-04 12:15:29 -07:00
mdp4_irq.c drm/msm: drop use of drmP.h 2019-09-03 16:16:57 -07:00
mdp4_kms.c drm/msm/mdp4: get rid of struct mdp4_platform_config 2022-07-04 21:05:31 +03:00
mdp4_kms.h drm/msm/mdp4: get rid of struct mdp4_platform_config 2022-07-04 21:05:31 +03:00
mdp4_lcdc_encoder.c drm/msm/mdp4: Remove unused downstream bus scaling apis 2020-09-04 12:15:29 -07:00
mdp4_lvds_connector.c drm/msm: Fix return type of mdp4_lvds_connector_mode_valid 2022-09-30 16:57:53 +00:00
mdp4_lvds_pll.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
mdp4_plane.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00