[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b56d11ce-869f-4183-bb26-f0261af356a6@linaro.org>
Date: Wed, 7 Feb 2024 10:13:29 +0100
From: Neil Armstrong <neil.armstrong@...aro.org>
To: Adam Ford <aford173@...il.com>, dri-devel@...ts.freedesktop.org
Cc: nathan@...nel.org, kernel test robot <lkp@...el.com>,
Liu Ying <victor.liu@....com>, Andrzej Hajda <andrzej.hajda@...el.com>,
Robert Foss <rfoss@...nel.org>,
Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
Jonas Karlman <jonas@...boo.se>, Jernej Skrabec <jernej.skrabec@...il.com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Daniel Vetter <daniel@...ll.ch>,
Shawn Guo <shawnguo@...nel.org>, Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>, NXP Linux Team <linux-imx@....com>,
Luca Ceresoli <luca.ceresoli@...tlin.com>,
Lucas Stach <l.stach@...gutronix.de>, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/bridge: imx8mp-hdmi-pvi: Fix build warnings
On 07/02/2024 01:23, Adam Ford wrote:
> 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: nathan@...nel.org
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202402062134.a6CqAt3s-lkp@intel.com/
> Signed-off-by: Adam Ford <aford173@...il.com>
>
> diff --git a/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c b/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c
> index a76b7669fe8a..f2a09c879e3d 100644
> --- a/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c
> +++ b/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c
> @@ -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);
Reviewed-by: Neil Armstrong <neil.armstrong@...aro.org>
Powered by blists - more mailing lists