Skip to contentSkip to conversation

drm/arm: hdlcd: remove unused variables

PATCH In review Arnd Bergmann 2 participants 3 messages Jun 20, 2017 – Jun 21, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/arm: hdlcd: remove unused variables

The last rework left behind two unused variables:

drm/arm/hdlcd_crtc.c: In function 'hdlcd_plane_atomic_update':
drm/arm/hdlcd_crtc.c:264:13: warning: unused variable 'src_y' [-Wunused-variable] drm/arm/hdlcd_crtc.c:264:6: warning: unused variable 'src_x' [-Wunused-variable]

This removes them.

Fixes b2ae06ae9834 ("drm/arm: hdlcd: Use CMA helper for plane buffer address calculation")
---
 drivers/gpu/drm/arm/hdlcd_crtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/arm/hdlcd_crtc.c +1 -1
index 0128ebd318f5..d67b6f15e8b8 100644
@@ -261,7 +261,7 @@ static void hdlcd_plane_atomic_update(struct drm_plane *plane,
 {
 	struct drm_framebuffer *fb = plane->state->fb;
 	struct hdlcd_drm_private *hdlcd;
-	u32 src_x, src_y, dest_h;
+	u32 dest_h;
 	dma_addr_t scanout_start;
 
 	if (!fb)
Signature · 6 lines
2.9.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer
#1 lore raw

Hi Arnd,

Quoted 7 lines · Arnd Bergmann

The last rework left behind two unused variables:

drm/arm/hdlcd_crtc.c: In function 'hdlcd_plane_atomic_update':
drm/arm/hdlcd_crtc.c:264:13: warning: unused variable 'src_y' [-Wunused-variable] drm/arm/hdlcd_crtc.c:264:6: warning: unused variable 'src_x' [-Wunused-variable]

This removes them.

Thanks for the patch! Acked-by: Liviu Dudau <[email protected]>

This is starting to get embarrassing :) I'm not sure why I didn't see the warnings when I did my builds, but I would like to make changes so that in the future I can catch situations like this. Do you change the flags of the default make multi_v7_defconfig?

I will apply the patch to the HLDCD tree and send Dave an updated pull request.

Best regards,
Liviu

Quoted 23 lines
Fixes b2ae06ae9834 ("drm/arm: hdlcd: Use CMA helper for plane buffer address calculation")
---
 drivers/gpu/drm/arm/hdlcd_crtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/arm/hdlcd_crtc.c +1 -1
index 0128ebd318f5..d67b6f15e8b8 100644
@@ -261,7 +261,7 @@ static void hdlcd_plane_atomic_update(struct drm_plane *plane,
 {
 	struct drm_framebuffer *fb = plane->state->fb;
 	struct hdlcd_drm_private *hdlcd;
-	u32 src_x, src_y, dest_h;
+	u32 dest_h;
 	dma_addr_t scanout_start;
 
 	if (!fb)
Signature · 1 line
2.9.0
Signature · 12 lines
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
Quoted 9 lines · Liviu Dudau

Hi Arnd,

Quoted 6 lines · Arnd Bergmann

The last rework left behind two unused variables:

drm/arm/hdlcd_crtc.c: In function 'hdlcd_plane_atomic_update':
drm/arm/hdlcd_crtc.c:264:13: warning: unused variable 'src_y' [-Wunused-variable] drm/arm/hdlcd_crtc.c:264:6: warning: unused variable 'src_x' [-Wunused-variable]

Quoted 7 lines
Quoted 1 line

This removes them.

Thanks for the patch! Acked-by: Liviu Dudau <[email protected]>

This is starting to get embarrassing :) I'm not sure why I didn't see the warnings when I did my builds, but I would like to make changes so that in the future I can catch situations like this. Do you change the flags of the default make multi_v7_defconfig?

I mainly do randconfig testing, which catches a lot of bugs that you don't see in the defconfig build. My general recommendation is to build-test on ARM allmodconfig and x86 allmodconfig, and to ensure that all new code gets enabled with CONFIG_COMPILE_TEST in those builds.

Quoted 1 line

I will apply the patch to the HLDCD tree and send Dave an updated pull request.

Ok, thanks!

Arnd
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel