Thread (28 messages) 28 messages, 7 authors, 2025-06-10

Re: [PATCH 1/9] of: Add warpper function of_find_node_by_name_balanced()

From: Dan Carpenter <hidden>
Date: 2025-02-08 04:18:58
Also in: arm-scmi, linux-devicetree, linux-media, netdev

On Fri, Feb 07, 2025 at 05:37:22PM +0200, Laurent Pinchart wrote:
I'm tempted to then rename of_find_node_by_name() to
__of_find_node_by_name() to indicate it's an internal function not meant
to be called except in special cases. It could all be renamed to
__of_find_next_node_by_name() to make its behaviour clearer.
Adding "next" to the name would help a lot.

Joe Hattori was finding some of these bugs using his static checker.
We could easily write something really specific to find this sort of
bug using Smatch.  If you have ideas like this feel free to ask on
smatch@vger.kernel.org.  It doesn't find anything that your grep
didn't find but any new bugs will be detected when they're introduced.

regards,
dan carpenter

Attachments

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