diff options
author | Nathan Huckleberry <[email protected]> | 2022-09-13 13:55:44 -0700 |
---|---|---|
committer | Philipp Zabel <[email protected]> | 2022-11-01 14:36:55 +0100 |
commit | fc007fb815ab5395c3962c09b79a1630b0fbed9c (patch) | |
tree | 8bb102c0860479f56df7a0264a451b0e77e58d0e /drivers/platform | |
parent | ff52fe006fdeacee49745dabed26154db52a6343 (diff) |
drm/imx: imx-tve: Fix return type of imx_tve_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 imx_tve_connector_mode_valid should be changed from
int to enum drm_mode_status.
Reported-by: Dan Carpenter <[email protected]>
Link: https://github.com/ClangBuiltLinux/linux/issues/1703
Cc: [email protected]
Signed-off-by: Nathan Huckleberry <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
Reviewed-by: Philipp Zabel <[email protected]>
Signed-off-by: Philipp Zabel <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions