* [PATCH] dmaengine: ti: edma: Remove the unused function edma_and()
@ 2022-10-18 8:38 Jiapeng Chong
2022-10-19 13:46 ` Vinod Koul
2022-10-26 17:21 ` [PATCH] " Péter Ujfalusi
0 siblings, 2 replies; 4+ messages in thread
From: Jiapeng Chong @ 2022-10-18 8:38 UTC (permalink / raw)
To: peter.ujfalusi; +Cc: vkoul, dmaengine, linux-kernel, Jiapeng Chong, Abaci Robot
The function edma_and() is defined in the edma.c file, but not called
elsewhere, so remove this unused function.
drivers/dma/ti/edma.c:321:20: warning: unused function 'edma_and'.
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2430
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/dma/ti/edma.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/dma/ti/edma.c b/drivers/dma/ti/edma.c
index fa06d7e6d8e3..9ea91c640c32 100644
--- a/drivers/dma/ti/edma.c
+++ b/drivers/dma/ti/edma.c
@@ -318,14 +318,6 @@ static inline void edma_modify(struct edma_cc *ecc, int offset, unsigned and,
edma_write(ecc, offset, val);
}
-static inline void edma_and(struct edma_cc *ecc, int offset, unsigned and)
-{
- unsigned val = edma_read(ecc, offset);
-
- val &= and;
- edma_write(ecc, offset, val);
-}
-
static inline void edma_or(struct edma_cc *ecc, int offset, unsigned or)
{
unsigned val = edma_read(ecc, offset);
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] dmaengine: ti: edma: Remove the unused function edma_and()
2022-10-18 8:38 [PATCH] dmaengine: ti: edma: Remove the unused function edma_and() Jiapeng Chong
@ 2022-10-19 13:46 ` Vinod Koul
[not found] ` <354896d0-3a48-44a1-81bf-8e46caf55a7e.jiapeng.chong@linux.alibaba.com>
2022-10-26 17:21 ` [PATCH] " Péter Ujfalusi
1 sibling, 1 reply; 4+ messages in thread
From: Vinod Koul @ 2022-10-19 13:46 UTC (permalink / raw)
To: Jiapeng Chong; +Cc: peter.ujfalusi, dmaengine, linux-kernel, Abaci Robot
On 18-10-22, 16:38, Jiapeng Chong wrote:
> The function edma_and() is defined in the edma.c file, but not called
> elsewhere, so remove this unused function.
>
> drivers/dma/ti/edma.c:321:20: warning: unused function 'edma_and'.
>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2430
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Where is this report?
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
> drivers/dma/ti/edma.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/drivers/dma/ti/edma.c b/drivers/dma/ti/edma.c
> index fa06d7e6d8e3..9ea91c640c32 100644
> --- a/drivers/dma/ti/edma.c
> +++ b/drivers/dma/ti/edma.c
> @@ -318,14 +318,6 @@ static inline void edma_modify(struct edma_cc *ecc, int offset, unsigned and,
> edma_write(ecc, offset, val);
> }
>
> -static inline void edma_and(struct edma_cc *ecc, int offset, unsigned and)
> -{
> - unsigned val = edma_read(ecc, offset);
> -
> - val &= and;
> - edma_write(ecc, offset, val);
> -}
> -
> static inline void edma_or(struct edma_cc *ecc, int offset, unsigned or)
> {
> unsigned val = edma_read(ecc, offset);
> --
> 2.20.1.7.g153144c
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] dmaengine: ti: edma: Remove the unused function edma_and()
2022-10-18 8:38 [PATCH] dmaengine: ti: edma: Remove the unused function edma_and() Jiapeng Chong
2022-10-19 13:46 ` Vinod Koul
@ 2022-10-26 17:21 ` Péter Ujfalusi
1 sibling, 0 replies; 4+ messages in thread
From: Péter Ujfalusi @ 2022-10-26 17:21 UTC (permalink / raw)
To: Jiapeng Chong; +Cc: vkoul, dmaengine, linux-kernel, Abaci Robot
On 18/10/2022 11:38, Jiapeng Chong wrote:
> The function edma_and() is defined in the edma.c file, but not called
> elsewhere, so remove this unused function.
>
> drivers/dma/ti/edma.c:321:20: warning: unused function 'edma_and'.
0f4c5b29e333 dmaengine: ti: edma: Remove some unused functions
dropped edma_param_and() but left the edma_and() behind...
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2430
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
> drivers/dma/ti/edma.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/drivers/dma/ti/edma.c b/drivers/dma/ti/edma.c
> index fa06d7e6d8e3..9ea91c640c32 100644
> --- a/drivers/dma/ti/edma.c
> +++ b/drivers/dma/ti/edma.c
> @@ -318,14 +318,6 @@ static inline void edma_modify(struct edma_cc *ecc, int offset, unsigned and,
> edma_write(ecc, offset, val);
> }
>
> -static inline void edma_and(struct edma_cc *ecc, int offset, unsigned and)
> -{
> - unsigned val = edma_read(ecc, offset);
> -
> - val &= and;
> - edma_write(ecc, offset, val);
> -}
> -
> static inline void edma_or(struct edma_cc *ecc, int offset, unsigned or)
> {
> unsigned val = edma_read(ecc, offset);
--
Péter
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-04 14:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-18 8:38 [PATCH] dmaengine: ti: edma: Remove the unused function edma_and() Jiapeng Chong
2022-10-19 13:46 ` Vinod Koul
[not found] ` <354896d0-3a48-44a1-81bf-8e46caf55a7e.jiapeng.chong@linux.alibaba.com>
2022-11-04 14:40 ` 回复:[PATCH] " Vinod Koul
2022-10-26 17:21 ` [PATCH] " Péter Ujfalusi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox