* [PATCH] drm/gma500: remove unused gma_pipe_event function
@ 2023-03-19 14:23 Tom Rix
2023-03-21 8:20 ` Patrik Jakobsson
0 siblings, 1 reply; 2+ messages in thread
From: Tom Rix @ 2023-03-19 14:23 UTC (permalink / raw)
To: patrik.r.jakobsson, airlied, daniel, nathan, ndesaulniers
Cc: dri-devel, linux-kernel, llvm, 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.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/gpu/drm/gma500/psb_irq.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/drivers/gpu/drm/gma500/psb_irq.c b/drivers/gpu/drm/gma500/psb_irq.c
index d421031462df..343c51250207 100644
--- a/drivers/gpu/drm/gma500/psb_irq.c
+++ b/drivers/gpu/drm/gma500/psb_irq.c
@@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/gma500: remove unused gma_pipe_event function
2023-03-19 14:23 [PATCH] drm/gma500: remove unused gma_pipe_event function Tom Rix
@ 2023-03-21 8:20 ` Patrik Jakobsson
0 siblings, 0 replies; 2+ messages in thread
From: Patrik Jakobsson @ 2023-03-21 8:20 UTC (permalink / raw)
To: Tom Rix
Cc: airlied, daniel, nathan, ndesaulniers, dri-devel, linux-kernel, llvm
On Sun, Mar 19, 2023 at 3:23 PM Tom Rix <trix@redhat.com> wrote:
>
> 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.
>
> Signed-off-by: Tom Rix <trix@redhat.com>
Applied to drm-misc-next
Thanks
Patrik
> ---
> drivers/gpu/drm/gma500/psb_irq.c | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/drivers/gpu/drm/gma500/psb_irq.c b/drivers/gpu/drm/gma500/psb_irq.c
> index d421031462df..343c51250207 100644
> --- a/drivers/gpu/drm/gma500/psb_irq.c
> +++ b/drivers/gpu/drm/gma500/psb_irq.c
> @@ -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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-21 8:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-19 14:23 [PATCH] drm/gma500: remove unused gma_pipe_event function Tom Rix
2023-03-21 8:20 ` Patrik Jakobsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®