From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Bjorn Helgaas <helgaas@kernel.org>, Rob Herring <robh@kernel.org>,
Saravana Kannan <saravanak@google.com>
Cc: Chen-Yu Tsai <wenst@chromium.org>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Bjorn Helgaas <bhelgaas@google.com>
Subject: Re: [PATCH] of: base: Add of_get_next_child_with_prefix() stub
Date: Mon, 29 Sep 2025 12:18:25 +0200 [thread overview]
Message-ID: <70917563-3df1-4fbb-a602-2f3ecd20239f@collabora.com> (raw)
In-Reply-To: <20250925195720.2200088-1-helgaas@kernel.org>
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)
> {
prev parent reply other threads:[~2025-09-29 10:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=70917563-3df1-4fbb-a602-2f3ecd20239f@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=bhelgaas@google.com \
--cc=devicetree@vger.kernel.org \
--cc=helgaas@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=saravanak@google.com \
--cc=wenst@chromium.org \
--cc=wsa+renesas@sang-engineering.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox