]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
of: base: Add of_get_next_child_with_prefix() stub
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 25 Sep 2025 19:56:30 +0000 (14:56 -0500)
committerRob Herring (Arm) <robh@kernel.org>
Fri, 26 Sep 2025 19:51:27 +0000 (14:51 -0500)
1fcc67e3a354 ("of: base: Add for_each_child_of_node_with_prefix()") added
of_get_next_child_with_prefix() but did not add a stub for the !CONFIG_OF
case.

Add a of_get_next_child_with_prefix() stub so users of
for_each_child_of_node_with_prefix() can be built for compile testing even
when !CONFIG_OF.

Fixes: 1fcc67e3a354 ("of: base: Add for_each_child_of_node_with_prefix()")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
include/linux/of.h

index a62154aeda1b6a600c2b155ac486c0e0b56e0bf2..5e2c6ed9370a646a658c09df4d0dc2cd38c11c71 100644 (file)
@@ -550,6 +550,13 @@ static inline struct device_node *of_get_next_child(
        return NULL;
 }
 
+static inline struct device_node *of_get_next_child_with_prefix(
+       const struct device_node *node, struct device_node *prev,
+       const char *prefix)
+{
+       return NULL;
+}
+
 static inline struct device_node *of_get_next_available_child(
        const struct device_node *node, struct device_node *prev)
 {