* [PATCH] net: atheros: atl1c: remove unused atl1c_irq_reset function
@ 2023-03-20 23:23 Tom Rix
2023-03-21 4:50 ` Pavan Chebbi
2023-03-22 5:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Tom Rix @ 2023-03-20 23:23 UTC (permalink / raw)
To: chris.snook, davem, edumazet, kuba, pabeni, nathan, ndesaulniers,
yuanjilin, liew.s.piaw
Cc: netdev, linux-kernel, llvm, Tom Rix
clang with W=1 reports
drivers/net/ethernet/atheros/atl1c/atl1c_main.c:214:20: error:
unused function 'atl1c_irq_reset' [-Werror,-Wunused-function]
static inline void atl1c_irq_reset(struct atl1c_adapter *adapter)
^
This function is not used, so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
index 40c781695d58..4a288799633f 100644
--- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
+++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
@@ -207,16 +207,6 @@ static inline void atl1c_irq_disable(struct atl1c_adapter *adapter)
synchronize_irq(adapter->pdev->irq);
}
-/**
- * atl1c_irq_reset - reset interrupt confiure on the NIC
- * @adapter: board private structure
- */
-static inline void atl1c_irq_reset(struct atl1c_adapter *adapter)
-{
- atomic_set(&adapter->irq_sem, 1);
- atl1c_irq_enable(adapter);
-}
-
/*
* atl1c_wait_until_idle - wait up to AT_HW_MAX_IDLE_DELAY reads
* of the idle status register until the device is actually idle
--
2.27.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: atheros: atl1c: remove unused atl1c_irq_reset function
2023-03-20 23:23 [PATCH] net: atheros: atl1c: remove unused atl1c_irq_reset function Tom Rix
@ 2023-03-21 4:50 ` Pavan Chebbi
2023-03-22 5:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Pavan Chebbi @ 2023-03-21 4:50 UTC (permalink / raw)
To: Tom Rix
Cc: chris.snook, davem, edumazet, kuba, pabeni, nathan, ndesaulniers,
yuanjilin, liew.s.piaw, netdev, linux-kernel, llvm
[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]
On Tue, Mar 21, 2023 at 4:54 AM Tom Rix <trix@redhat.com> wrote:
>
> clang with W=1 reports
> drivers/net/ethernet/atheros/atl1c/atl1c_main.c:214:20: error:
> unused function 'atl1c_irq_reset' [-Werror,-Wunused-function]
> static inline void atl1c_irq_reset(struct atl1c_adapter *adapter)
> ^
> This function is not used, so remove it.
>
> Signed-off-by: Tom Rix <trix@redhat.com>
> ---
> drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 10 ----------
> 1 file changed, 10 deletions(-)
Looks good to me.
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
>
> diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
> index 40c781695d58..4a288799633f 100644
> --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
> +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
> @@ -207,16 +207,6 @@ static inline void atl1c_irq_disable(struct atl1c_adapter *adapter)
> synchronize_irq(adapter->pdev->irq);
> }
>
> -/**
> - * atl1c_irq_reset - reset interrupt confiure on the NIC
> - * @adapter: board private structure
> - */
> -static inline void atl1c_irq_reset(struct atl1c_adapter *adapter)
> -{
> - atomic_set(&adapter->irq_sem, 1);
> - atl1c_irq_enable(adapter);
> -}
> -
> /*
> * atl1c_wait_until_idle - wait up to AT_HW_MAX_IDLE_DELAY reads
> * of the idle status register until the device is actually idle
> --
> 2.27.0
>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4209 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: atheros: atl1c: remove unused atl1c_irq_reset function
2023-03-20 23:23 [PATCH] net: atheros: atl1c: remove unused atl1c_irq_reset function Tom Rix
2023-03-21 4:50 ` Pavan Chebbi
@ 2023-03-22 5:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-03-22 5:40 UTC (permalink / raw)
To: Tom Rix
Cc: chris.snook, davem, edumazet, kuba, pabeni, nathan, ndesaulniers,
yuanjilin, liew.s.piaw, netdev, linux-kernel, llvm
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 20 Mar 2023 19:23:17 -0400 you wrote:
> clang with W=1 reports
> drivers/net/ethernet/atheros/atl1c/atl1c_main.c:214:20: error:
> unused function 'atl1c_irq_reset' [-Werror,-Wunused-function]
> static inline void atl1c_irq_reset(struct atl1c_adapter *adapter)
> ^
> This function is not used, so remove it.
>
> [...]
Here is the summary with links:
- net: atheros: atl1c: remove unused atl1c_irq_reset function
https://git.kernel.org/netdev/net-next/c/f6f4e739b164
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-22 5:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 23:23 [PATCH] net: atheros: atl1c: remove unused atl1c_irq_reset function Tom Rix
2023-03-21 4:50 ` Pavan Chebbi
2023-03-22 5:40 ` patchwork-bot+netdevbpf
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®