Skip to contentSkip to conversation

drm/gma500: remove unused gma_pipe_event function

PATCH Applied Tom Rix 2 participants 2 messages Mar 19, 2023 – Mar 21, 2023

Subsystems (3)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 drm/gma500: remove unused gma_pipe_event function

clang with W=1 reports drivers/gpu/drm/gma500/psb_irq.c:35:19: error: unused function
'gma_pipe_event' [-Werror,-Wunused-function]
static inline u32 gma_pipe_event(int pipe)

                  ^

This function is not used, so remove it.

---
 drivers/gpu/drm/gma500/psb_irq.c | 11 -----------
 1 file changed, 11 deletions(-)
drivers/gpu/drm/gma500/psb_irq.c +0 -11
index d421031462df..343c51250207 100644
@@ -32,17 +32,6 @@ static inline u32 gma_pipestat(int pipe)
 	BUG();
 }
 
-static inline u32 gma_pipe_event(int pipe)
-{
-	if (pipe == 0)
-		return _PSB_PIPEA_EVENT_FLAG;
-	if (pipe == 1)
-		return _MDFLD_PIPEB_EVENT_FLAG;
-	if (pipe == 2)
-		return _MDFLD_PIPEC_EVENT_FLAG;
-	BUG();
-}
-
 static inline u32 gma_pipeconf(int pipe)
 {
 	if (pipe == 0)
Signature · 1 line
2.27.0
maintainer Applied
#1 lore raw
Quoted 9 lines · Tom Rix

clang with W=1 reports drivers/gpu/drm/gma500/psb_irq.c:35:19: error: unused function
'gma_pipe_event' [-Werror,-Wunused-function]
static inline u32 gma_pipe_event(int pipe)

                  ^

This function is not used, so remove it.

Applied to drm-misc-next

Thanks
Patrik

Quoted 29 lines
---
 drivers/gpu/drm/gma500/psb_irq.c | 11 -----------
 1 file changed, 11 deletions(-)
drivers/gpu/drm/gma500/psb_irq.c +0 -12
index d421031462df..343c51250207 100644
@@ -32,17 +32,6 @@ static inline u32 gma_pipestat(int pipe)
        BUG();
 }
 
-static inline u32 gma_pipe_event(int pipe)
-{
-       if (pipe == 0)
-               return _PSB_PIPEA_EVENT_FLAG;
-       if (pipe == 1)
-               return _MDFLD_PIPEB_EVENT_FLAG;
-       if (pipe == 2)
-               return _MDFLD_PIPEC_EVENT_FLAG;
-       BUG();
-}
-
 static inline u32 gma_pipeconf(int pipe)
 {
        if (pipe == 0)
--

2.27.0