drm/i915: Remove spurious '()' in WARN macros
Subsystems (2)
PATCH 1/1 drm/i915: Remove spurious '()' in WARN macros
No need of any here.
Signed-off-by Damien Lespiau <[email protected]>
--- drivers/gpu/drm/i915/intel_display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_display.c +4 -4
@@ -1166,7 +1166,7 @@ static void assert_planes_disabled(struct drm_i915_private *dev_priv,if (INTEL_INFO (dev)->gen >=4 ) { reg =DSPCNTR (pipe); val =I915_READ (reg); -WARN ((val &DISPLAY_PLANE_ENABLE ), +WARN (val &DISPLAY_PLANE_ENABLE ,"plane %c assertion failure, should be disabled but not\n" ,plane_name (pipe));return ;
@@ -1195,20 +1195,20 @@ static void assert_sprites_disabled(struct drm_i915_private *dev_priv,for_each_sprite (pipe, sprite) { reg =SPCNTR (pipe, sprite); val =I915_READ (reg); -WARN ((val &SP_ENABLE ), +WARN (val &SP_ENABLE ,"sprite %c assertion failure, should be off on pipe %c but is still active\n" ,sprite_name (pipe, sprite),pipe_name (pipe)); } }else if (INTEL_INFO (dev)->gen >=7 ) { reg =SPRCTL (pipe); val =I915_READ (reg); -WARN ((val &SPRITE_ENABLE ), +WARN (val &SPRITE_ENABLE ,"sprite %c assertion failure, should be off on pipe %c but is still active\n" ,plane_name (pipe),pipe_name (pipe)); }else if (INTEL_INFO (dev)->gen >=5 ) { reg =DVSCNTR (pipe); val =I915_READ (reg); -WARN ((val &DVS_ENABLE ), +WARN (val &DVS_ENABLE ,"sprite %c assertion failure, should be off on pipe %c but is still active\n" ,plane_name (pipe),pipe_name (pipe)); }
Signature · 1 line
1.8.3.1
Daniel Vetter
AppliedQuoted 3 lines · Damien Lespiau
No need of any here.
Signed-off-by Damien Lespiau <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Quoted 48 lines
--- drivers/gpu/drm/i915/intel_display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/intel_display.c +4
-4@@ -1166,7 +1166,7 @@ static void assert_planes_disabled(struct drm_i915_private *dev_priv,if (INTEL_INFO (dev)->gen >=4 ) { reg =DSPCNTR (pipe); val =I915_READ (reg); -WARN ((val &DISPLAY_PLANE_ENABLE ), +WARN (val &DISPLAY_PLANE_ENABLE ,"plane %c assertion failure, should be disabled but not\n" ,plane_name (pipe));return ;@@ -1195,20 +1195,20 @@ static void assert_sprites_disabled(struct drm_i915_private *dev_priv,for_each_sprite (pipe, sprite) { reg =SPCNTR (pipe, sprite); val =I915_READ (reg); -WARN ((val &SP_ENABLE ), +WARN (val &SP_ENABLE ,"sprite %c assertion failure, should be off on pipe %c but is still active\n" ,sprite_name (pipe, sprite),pipe_name (pipe)); } }else if (INTEL_INFO (dev)->gen >=7 ) { reg =SPRCTL (pipe); val =I915_READ (reg); -WARN ((val &SPRITE_ENABLE ), +WARN (val &SPRITE_ENABLE ,"sprite %c assertion failure, should be off on pipe %c but is still active\n" ,plane_name (pipe),pipe_name (pipe)); }else if (INTEL_INFO (dev)->gen >=5 ) { reg =DVSCNTR (pipe); val =I915_READ (reg); -WARN ((val &DVS_ENABLE ), +WARN (val &DVS_ENABLE ,"sprite %c assertion failure, should be off on pipe %c but is still active\n" ,plane_name (pipe),pipe_name (pipe)); }Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch