Thread (6 messages) 6 messages, 3 authors, 2024-10-04

Re: [PATCH net-next v2 0/2] net: switch to scoped device_for_each_child_node()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2024-10-04 16:40:32
Also in: lkml

Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

On Mon, 30 Sep 2024 22:38:24 +0200 you wrote:
This series switches from the device_for_each_child_node() macro to its
scoped variant. This makes the code more robust if new early exits are
added to the loops, because there is no need for explicit calls to
fwnode_handle_put(), which also simplifies existing code.

The non-scoped macros to walk over nodes turn error-prone as soon as
the loop contains early exits (break, goto, return), and patches to
fix them show up regularly, sometimes due to new error paths in an
existing loop [1].

[...]
Here is the summary with links:
  - [net-next,v2,1/2] net: mdio: thunder: switch to scoped device_for_each_child_node()
    https://git.kernel.org/netdev/net-next/c/1d39d02a1535
  - [net-next,v2,2/2] net: hns: hisilicon: hns_dsaf_mac: switch to scoped device_for_each_child_node()
    https://git.kernel.org/netdev/net-next/c/e97dccd3e976

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help