drm/bridge: imx8mp-hdmi-pvi: Fix build warnings
Subsystems (5)
PATCH 1/1 drm/bridge: imx8mp-hdmi-pvi: Fix build warnings
Two separate build warnings were reported. One from an uninitialized variable, and the other from returning 0 instead of NULL from a pointer.
drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c +2 -2
@@ -57,7 +57,7 @@ static void imx8mp_hdmi_pvi_bridge_enable(struct drm_bridge *bridge,const struct drm_display_mode *mode;struct drm_crtc_state *crtc_state;struct drm_connector *connector; -u32 bus_flags, val; +u32 bus_flags =0 , val; connector =drm_atomic_get_new_connector_for_encoder (state, bridge->encoder); conn_state =drm_atomic_get_new_connector_state (state, connector);
@@ -110,7 +110,7 @@ imx8mp_hdmi_pvi_bridge_get_input_bus_fmts(struct drm_bridge *bridge,struct drm_bridge_state *next_state;if (!next_bridge->funcs->atomic_get_input_bus_fmts) -return 0 ; +return NULL ; next_state =drm_atomic_get_new_bridge_state (crtc_state->state, next_bridge);
Signature · 1 line
2.43.0
Quoted 24 lines · Adam Ford
Two separate build warnings were reported. One from an uninitialized variable, and the other from returning 0 instead of NULL from a pointer.
Fixes 059c53e877ca ("drm/bridge: imx: add driver for HDMI TX Parallel Video Interface")Reported-by [email protected]Reported-by kernel test robot <[email protected]>Signed-off-by Adam Ford <[email protected]>drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c +1
-1@@ -57,7 +57,7 @@ static void imx8mp_hdmi_pvi_bridge_enable(struct drm_bridge *bridge,const struct drm_display_mode *mode;struct drm_crtc_state *crtc_state;struct drm_connector *connector; -u32 bus_flags, val; +u32 bus_flags =0 , val; connector =drm_atomic_get_new_connector_for_encoder (state, bridge->encoder); conn_state =drm_atomic_get_new_connector_state (state, connector);
drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c imx8mp_hdmi_pvi_bridge_get_input_bus_fmts(struct drm_bridge *bridge, · line 116
Quoted 8 lines
drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c +1
-1@@ -110,7 +110,7 @@ imx8mp_hdmi_pvi_bridge_get_input_bus_fmts(struct drm_bridge *bridge,struct drm_bridge_state *next_state;if (!next_bridge->funcs->atomic_get_input_bus_fmts) -return 0 ; +return NULL ; next_state =drm_atomic_get_new_bridge_state (crtc_state->state, next_bridge);
Fabio Estevam
reviewerHi Adam,
Quoted 7 lines · Adam Ford
Two separate build warnings were reported. One from an uninitialized variable, and the other from returning 0 instead of NULL from a pointer.
Fixes 059c53e877ca ("drm/bridge: imx: add driver for HDMI TX Parallel Video Interface")Reported-by [email protected]
The Reported-by line format can be improved:
Thanks
Neil Armstrong
maintainerQuoted 8 lines · Fabio Estevam
Hi Adam,
Quoted 5 lines · Adam Ford
Two separate build warnings were reported. One from an uninitialized variable, and the other from returning 0 instead of NULL from a pointer.
Quoted 8 lines
Quoted 2 lines
Fixes 059c53e877ca ("drm/bridge: imx: add driver for HDMI TX Parallel Video Interface")Reported-by [email protected]The Reported-by line format can be improved:
Reported-by Nathan Chancellor <[email protected]>Thanks
Fixed while applying,
Thanks,
Neil
Quoted 10 lines · Neil Armstrong
Quoted 8 lines · Fabio Estevam
Hi Adam,
Quoted 5 lines · Adam Ford
Two separate build warnings were reported. One from an uninitialized variable, and the other from returning 0 instead of NULL from a pointer.
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Fixes 059c53e877ca ("drm/bridge: imx: add driver for HDMI TX Parallel Video Interface")Reported-by [email protected]The Reported-by line format can be improved:
Sorry about .that
Quoted 5 lines
Quoted 3 lines
Reported-by Nathan Chancellor <[email protected]>Thanks
Fixed while applying,
Thank you!
adam
Quoted 3 lines
Thanks,
Neil
Hi,
Quoted 5 lines · Adam Ford
Two separate build warnings were reported. One from an uninitialized variable, and the other from returning 0 instead of NULL from a pointer.
Thanks, Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-next)
[1/1] drm/bridge: imx8mp-hdmi-pvi: Fix build warnings
https://cgit.freedesktop.org/drm/drm-misc/commit/?id=c4ae9fd0de44832cb01d36af14bfc7783472e631
Signature · 1 line
Neil