diff options
| author | Nathan Huckleberry <[email protected]> | 2022-09-13 20:55:44 +0000 |
|---|---|---|
| committer | Philipp Zabel <[email protected]> | 2022-11-01 13:36:55 +0000 |
| commit | fc007fb815ab5395c3962c09b79a1630b0fbed9c (patch) | |
| tree | 8bb102c0860479f56df7a0264a451b0e77e58d0e /drivers/platform/surface/aggregator | |
| parent | drm/imx: Kconfig: Remove duplicated 'select DRM_KMS_HELPER' line (diff) | |
| download | kernel-fc007fb815ab5395c3962c09b79a1630b0fbed9c.tar.gz kernel-fc007fb815ab5395c3962c09b79a1630b0fbed9c.zip | |
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/surface/aggregator')
0 files changed, 0 insertions, 0 deletions
