drm/vmwgfx: remove unused vmw_overlay function
Subsystems (3)
PATCH 1/1 drm/vmwgfx: remove unused vmw_overlay function
clang with W=1 reports drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:56:35: error:
unused function 'vmw_overlay' [-Werror,-Wunused-function]
static inline struct vmw_overlay *vmw_overlay(struct drm_device *dev)
^
This function is not used, so remove it.
--- drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c +0 -6
@@ -53,12 +53,6 @@ struct vmw_overlay {struct vmw_stream stream[VMW_MAX_NUM_STREAMS ]; }; -static inline struct vmw_overlay *vmw_overlay (struct drm_device *dev) -{ -struct vmw_private *dev_priv =vmw_priv (dev); -return dev_priv ? dev_priv->overlay_priv :NULL ; -} -struct vmw_escape_header {uint32_t cmd;SVGAFifoCmdEscape body;
Signature · 1 line
2.27.0
Quoted 9 lines · Tom Rix
clang with W=1 reports
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:56:35: error:
unused function 'vmw_overlay' [-Werror,-Wunused-function]
static inline structvmw_overlay*vmw_overlay(structdrm_device*dev)^This function is not used, so remove it.
Signed-off-by Tom Rix <[email protected]>
Thanks for the patch!
Quoted 24 lines
--- drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c | 6 ------ 1 file changed, 6 deletions(-)drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c +0
-7@@ -53,12 +53,6 @@ struct vmw_overlay {struct vmw_stream stream[VMW_MAX_NUM_STREAMS ]; }; -static inline struct vmw_overlay *vmw_overlay (struct drm_device *dev) -{ -struct vmw_private *dev_priv =vmw_priv (dev); -return dev_priv ? dev_priv->overlay_priv :NULL ; -} -struct vmw_escape_header {uint32_t cmd;SVGAFifoCmdEscape body; --2.27.0
Signature · 2 lines
Thanks, ~Nick Desaulniers
Quoted 8 lines · Tom Rix
clang with W=1 reports
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:56:35: error:
unused function 'vmw_overlay' [-Werror,-Wunused-function] static inline structvmw_overlay*vmw_overlay(structdrm_device*dev) ^
This function is not used, so remove it.Signed-off-by Tom Rix <[email protected]>
Thank you for the patch. I went ahead and pushed it to the drm-misc-next branch in drm-misc tree.
z