dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/bridge: imx8mp-hdmi-pvi:  Fix build warnings
@ 2024-02-07  0:23 Adam Ford
  2024-02-07  9:13 ` Neil Armstrong
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Adam Ford @ 2024-02-07  0:23 UTC (permalink / raw)
  To: dri-devel
  Cc: Adam Ford, nathan, kernel test robot, Liu Ying, Andrzej Hajda,
	Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
	Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Daniel Vetter, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Luca Ceresoli, Lucas Stach, linux-arm-kernel,
	linux-kernel

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@kernel.org
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402062134.a6CqAt3s-lkp@intel.com/
Signed-off-by: Adam Ford <aford173@gmail.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);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/bridge: imx8mp-hdmi-pvi: Fix build warnings
  2024-02-07  0:23 [PATCH] drm/bridge: imx8mp-hdmi-pvi: Fix build warnings Adam Ford
@ 2024-02-07  9:13 ` Neil Armstrong
  2024-02-07  9:22 ` Fabio Estevam
  2024-02-07  9:26 ` Neil Armstrong
  2 siblings, 0 replies; 6+ messages in thread
From: Neil Armstrong @ 2024-02-07  9:13 UTC (permalink / raw)
  To: Adam Ford, dri-devel
  Cc: nathan, kernel test robot, Liu Ying, Andrzej Hajda, Robert Foss,
	Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
	Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Daniel Vetter, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
	Luca Ceresoli, Lucas Stach, linux-arm-kernel, linux-kernel

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@kernel.org
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202402062134.a6CqAt3s-lkp@intel.com/
> Signed-off-by: Adam Ford <aford173@gmail.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@linaro.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/bridge: imx8mp-hdmi-pvi: Fix build warnings
  2024-02-07  0:23 [PATCH] drm/bridge: imx8mp-hdmi-pvi: Fix build warnings Adam Ford
  2024-02-07  9:13 ` Neil Armstrong
@ 2024-02-07  9:22 ` Fabio Estevam
  2024-02-07  9:24   ` Neil Armstrong
  2024-02-07  9:26 ` Neil Armstrong
  2 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2024-02-07  9:22 UTC (permalink / raw)
  To: Adam Ford
  Cc: dri-devel, nathan, kernel test robot, Liu Ying, Andrzej Hajda,
	Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
	Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Daniel Vetter, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, NXP Linux Team,
	Luca Ceresoli, Lucas Stach, linux-arm-kernel, linux-kernel

Hi Adam,

On Tue, Feb 6, 2024 at 9:23 PM Adam Ford <aford173@gmail.com> 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@kernel.org

The Reported-by line format can be improved:

Reported-by: Nathan Chancellor <nathan@kernel.org>

Thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/bridge: imx8mp-hdmi-pvi: Fix build warnings
  2024-02-07  9:22 ` Fabio Estevam
@ 2024-02-07  9:24   ` Neil Armstrong
  2024-02-07 12:00     ` Adam Ford
  0 siblings, 1 reply; 6+ messages in thread
From: Neil Armstrong @ 2024-02-07  9:24 UTC (permalink / raw)
  To: Fabio Estevam, Adam Ford
  Cc: dri-devel, nathan, kernel test robot, Liu Ying, Andrzej Hajda,
	Robert Foss, Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
	Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Daniel Vetter, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, NXP Linux Team, Luca Ceresoli,
	Lucas Stach, linux-arm-kernel, linux-kernel

On 07/02/2024 10:22, Fabio Estevam wrote:
> Hi Adam,
> 
> On Tue, Feb 6, 2024 at 9:23 PM Adam Ford <aford173@gmail.com> 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@kernel.org
> 
> The Reported-by line format can be improved:
> 
> Reported-by: Nathan Chancellor <nathan@kernel.org>
> 
> Thanks

Fixed while applying,

Thanks,
Neil

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/bridge: imx8mp-hdmi-pvi: Fix build warnings
  2024-02-07  0:23 [PATCH] drm/bridge: imx8mp-hdmi-pvi: Fix build warnings Adam Ford
  2024-02-07  9:13 ` Neil Armstrong
  2024-02-07  9:22 ` Fabio Estevam
@ 2024-02-07  9:26 ` Neil Armstrong
  2 siblings, 0 replies; 6+ messages in thread
From: Neil Armstrong @ 2024-02-07  9:26 UTC (permalink / raw)
  To: dri-devel, Adam Ford
  Cc: nathan, kernel test robot, Liu Ying, Andrzej Hajda, Robert Foss,
	Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
	Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Daniel Vetter, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
	Luca Ceresoli, Lucas Stach, linux-arm-kernel, linux-kernel

Hi,

On Tue, 06 Feb 2024 18:23:04 -0600, 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.
> 
> 

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

-- 
Neil


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/bridge: imx8mp-hdmi-pvi: Fix build warnings
  2024-02-07  9:24   ` Neil Armstrong
@ 2024-02-07 12:00     ` Adam Ford
  0 siblings, 0 replies; 6+ messages in thread
From: Adam Ford @ 2024-02-07 12:00 UTC (permalink / raw)
  To: neil.armstrong
  Cc: Fabio Estevam, dri-devel, nathan, kernel test robot, Liu Ying,
	Andrzej Hajda, Robert Foss, Laurent Pinchart, Jonas Karlman,
	Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Daniel Vetter, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, NXP Linux Team,
	Luca Ceresoli, Lucas Stach, linux-arm-kernel, linux-kernel

On Wed, Feb 7, 2024 at 3:24 AM Neil Armstrong <neil.armstrong@linaro.org> wrote:
>
> On 07/02/2024 10:22, Fabio Estevam wrote:
> > Hi Adam,
> >
> > On Tue, Feb 6, 2024 at 9:23 PM Adam Ford <aford173@gmail.com> 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@kernel.org
> >
> > The Reported-by line format can be improved:
> >
Sorry about .that

> > Reported-by: Nathan Chancellor <nathan@kernel.org>
> >
> > Thanks
>
> Fixed while applying,

Thank you!

adam
>
> Thanks,
> Neil

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-07 12:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-07  0:23 [PATCH] drm/bridge: imx8mp-hdmi-pvi: Fix build warnings Adam Ford
2024-02-07  9:13 ` Neil Armstrong
2024-02-07  9:22 ` Fabio Estevam
2024-02-07  9:24   ` Neil Armstrong
2024-02-07 12:00     ` Adam Ford
2024-02-07  9:26 ` Neil Armstrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).