[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAL_JsqKPz0tDx7i0HUDw33tDozBTsU4dQyo73-t_OafytRGZUw@mail.gmail.com>
Date: Wed, 1 Jul 2015 12:39:28 -0500
From: Rob Herring <robherring2@...il.com>
To: Tomeu Vizoso <tomeu.vizoso@...labora.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Grant Likely <grant.likely@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
Subject: Re: [PATCH] of: add stub for for_each_property_of_node()
On Wed, Jul 1, 2015 at 3:10 AM, Tomeu Vizoso <tomeu.vizoso@...labora.com> wrote:
> So code that isn't protected by CONFIG_OF can still build.
Is something in mainline/next broken? If not do you have a user?
>
> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@...labora.com>
> ---
> include/linux/of.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/linux/of.h b/include/linux/of.h
> index edc068d..8922448 100644
> --- a/include/linux/of.h
> +++ b/include/linux/of.h
> @@ -673,6 +673,9 @@ static inline void of_property_clear_flag(struct property *p, unsigned long flag
>
> #define of_match_ptr(_ptr) NULL
> #define of_match_node(_matches, _node) NULL
> +#define for_each_property_of_node(dn, pp) \
> + for (; NULL; )
> +
We normally add empty functions that the iterator calls rather than an
empty for loop.
Rob
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists