netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND PATCH v2] net: hsr: convert to use new timer APIs
@ 2024-10-10  9:27 Yu Liao
  2024-10-14 12:20 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Yu Liao @ 2024-10-10  9:27 UTC (permalink / raw)
  To: kuba; +Cc: liaoyu15, xiexiuqi, horms, netdev, davem, edumazet, pabeni

del_timer() and del_timer_sync() have been renamed to timer_delete()
and timer_delete_sync().

Inconsistent API usage makes the code a bit confusing, so replace with
the new APIs.

No functional changes intended.

Signed-off-by: Yu Liao <liaoyu15@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
---
v1 -> v2: Add Simon's Reviewed-by tag.

 net/hsr/hsr_netlink.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/hsr/hsr_netlink.c b/net/hsr/hsr_netlink.c
index f6ff0b61e08a..6f09b9512484 100644
--- a/net/hsr/hsr_netlink.c
+++ b/net/hsr/hsr_netlink.c
@@ -128,9 +128,9 @@ static void hsr_dellink(struct net_device *dev, struct list_head *head)
 {
 	struct hsr_priv *hsr = netdev_priv(dev);
 
-	del_timer_sync(&hsr->prune_timer);
-	del_timer_sync(&hsr->prune_proxy_timer);
-	del_timer_sync(&hsr->announce_timer);
+	timer_delete_sync(&hsr->prune_timer);
+	timer_delete_sync(&hsr->prune_proxy_timer);
+	timer_delete_sync(&hsr->announce_timer);
 	timer_delete_sync(&hsr->announce_proxy_timer);
 
 	hsr_debugfs_term(hsr);
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [RESEND PATCH v2] net: hsr: convert to use new timer APIs
  2024-10-10  9:27 [RESEND PATCH v2] net: hsr: convert to use new timer APIs Yu Liao
@ 2024-10-14 12:20 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-10-14 12:20 UTC (permalink / raw)
  To: Yu Liao; +Cc: kuba, xiexiuqi, horms, netdev, davem, edumazet, pabeni

Hello:

This patch was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Thu, 10 Oct 2024 17:27:44 +0800 you wrote:
> del_timer() and del_timer_sync() have been renamed to timer_delete()
> and timer_delete_sync().
> 
> Inconsistent API usage makes the code a bit confusing, so replace with
> the new APIs.
> 
> No functional changes intended.
> 
> [...]

Here is the summary with links:
  - [RESEND,v2] net: hsr: convert to use new timer APIs
    https://git.kernel.org/netdev/net-next/c/e4c416533f06

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] 2+ messages in thread

end of thread, other threads:[~2024-10-14 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10  9:27 [RESEND PATCH v2] net: hsr: convert to use new timer APIs Yu Liao
2024-10-14 12:20 ` 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;
as well as URLs for NNTP newsgroup(s).