* [PATCH] of: base: Add of_get_next_child_with_prefix() stub
@ 2025-09-25 19:56 Bjorn Helgaas
2025-09-26 19:50 ` Rob Herring (Arm)
2025-09-29 10:18 ` AngeloGioacchino Del Regno
0 siblings, 2 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2025-09-25 19:56 UTC (permalink / raw)
To: Rob Herring, Saravana Kannan
Cc: Chen-Yu Tsai, AngeloGioacchino Del Regno, Wolfram Sang,
devicetree, linux-kernel, Bjorn Helgaas
From: Bjorn Helgaas <bhelgaas@google.com>
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>
---
include/linux/of.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index a62154aeda1b..5e2c6ed9370a 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -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)
{
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] of: base: Add of_get_next_child_with_prefix() stub
2025-09-25 19:56 [PATCH] of: base: Add of_get_next_child_with_prefix() stub Bjorn Helgaas
@ 2025-09-26 19:50 ` Rob Herring (Arm)
2025-09-29 10:18 ` AngeloGioacchino Del Regno
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2025-09-26 19:50 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Wolfram Sang, Bjorn Helgaas, AngeloGioacchino Del Regno,
Saravana Kannan, linux-kernel, Chen-Yu Tsai, devicetree
On Thu, 25 Sep 2025 14:56:30 -0500, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
>
> 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>
> ---
> include/linux/of.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
Applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] of: base: Add of_get_next_child_with_prefix() stub
2025-09-25 19:56 [PATCH] of: base: Add of_get_next_child_with_prefix() stub Bjorn Helgaas
2025-09-26 19:50 ` Rob Herring (Arm)
@ 2025-09-29 10:18 ` AngeloGioacchino Del Regno
1 sibling, 0 replies; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-09-29 10:18 UTC (permalink / raw)
To: Bjorn Helgaas, Rob Herring, Saravana Kannan
Cc: Chen-Yu Tsai, Wolfram Sang, devicetree, linux-kernel,
Bjorn Helgaas
Il 25/09/25 21:56, Bjorn Helgaas ha scritto:
> From: Bjorn Helgaas <bhelgaas@google.com>
>
> 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>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> include/linux/of.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/include/linux/of.h b/include/linux/of.h
> index a62154aeda1b..5e2c6ed9370a 100644
> --- a/include/linux/of.h
> +++ b/include/linux/of.h
> @@ -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)
> {
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-29 10:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-25 19:56 [PATCH] of: base: Add of_get_next_child_with_prefix() stub Bjorn Helgaas
2025-09-26 19:50 ` Rob Herring (Arm)
2025-09-29 10:18 ` AngeloGioacchino Del Regno
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).