All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] of: Add empty of_get_next_parent() for !OF
@ 2015-04-29 22:44 Ilkka Koskinen
       [not found] ` <1430347479-1715-1-git-send-email-ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Ilkka Koskinen @ 2015-04-29 22:44 UTC (permalink / raw)
  To: grant.likely-QSEj5FYQhm4dnm+yROfE0A,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA

From: Ilkka Koskinen <ilkka.koskinen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Add an empty version of of_get_next_parent() in order to avoid
build error.

Signed-off-by: Ilkka Koskinen <ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
 include/linux/of.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/linux/of.h b/include/linux/of.h
index dfde07e..416158f 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -425,6 +425,11 @@ static inline struct device_node *of_get_parent(const struct device_node *node)
 	return NULL;
 }
 
+static inline struct device_node *of_get_next_parent(struct device_node *node)
+{
+	return NULL;
+}
+
 static inline struct device_node *of_get_next_child(
 	const struct device_node *node, struct device_node *prev)
 {
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] of: Add empty of_get_next_parent() for !OF
       [not found] ` <1430347479-1715-1-git-send-email-ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
@ 2015-04-29 23:03   ` Rob Herring
       [not found]     ` <CAL_JsqJEQmJT9+4t=PSc_K6yRxuTRObewfdghXmBgDTg=Sm+qQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2015-04-29 23:03 UTC (permalink / raw)
  To: Ilkka Koskinen
  Cc: Grant Likely, Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA

On Wed, Apr 29, 2015 at 5:44 PM, Ilkka Koskinen
<ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> wrote:
> From: Ilkka Koskinen <ilkka.koskinen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
> Add an empty version of of_get_next_parent() in order to avoid
> build error.

Some details on the build error and what introduced it please.

> Signed-off-by: Ilkka Koskinen <ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
> ---
>  include/linux/of.h | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/include/linux/of.h b/include/linux/of.h
> index dfde07e..416158f 100644
> --- a/include/linux/of.h
> +++ b/include/linux/of.h
> @@ -425,6 +425,11 @@ static inline struct device_node *of_get_parent(const struct device_node *node)
>         return NULL;
>  }
>
> +static inline struct device_node *of_get_next_parent(struct device_node *node)
> +{
> +       return NULL;
> +}
> +
>  static inline struct device_node *of_get_next_child(
>         const struct device_node *node, struct device_node *prev)
>  {
> --
> 1.9.1
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] of: Add empty of_get_next_parent() for !OF
       [not found]     ` <CAL_JsqJEQmJT9+4t=PSc_K6yRxuTRObewfdghXmBgDTg=Sm+qQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-04-30 23:27       ` Ilkka Koskinen
       [not found]         ` <57872.10.24.5.56.1430436421.squirrel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Ilkka Koskinen @ 2015-04-30 23:27 UTC (permalink / raw)
  To: Rob Herring
  Cc: Ilkka Koskinen, Grant Likely, Rob Herring,
	devicetree-u79uwXL29TY76Z2rM5mHXA

Hi,

On Wed, April 29, 2015 16:03, Rob Herring wrote:
> On Wed, Apr 29, 2015 at 5:44 PM, Ilkka Koskinen
> <ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> wrote:
>> From: Ilkka Koskinen <ilkka.koskinen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>>
>> Add an empty version of of_get_next_parent() in order to avoid
>> build error.
>
> Some details on the build error and what introduced it please.

I agree. I'll add a better description of the issue in the commit message.

Some background: I'm basically implementing a parser that deals
with both device tree and ACPI. If OF hasn't been enabled, there's no
declaration or implementation of the function. I'm not aware if any
existing code in the kernel introduces the bug though.

Thanks,
Ilkka

>> Signed-off-by: Ilkka Koskinen <ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
>> ---
>>  include/linux/of.h | 5 +++++
>>  1 file changed, 5 insertions(+)
>>
>> diff --git a/include/linux/of.h b/include/linux/of.h
>> index dfde07e..416158f 100644
>> --- a/include/linux/of.h
>> +++ b/include/linux/of.h
>> @@ -425,6 +425,11 @@ static inline struct device_node
>> *of_get_parent(const struct device_node *node)
>>         return NULL;
>>  }
>>
>> +static inline struct device_node *of_get_next_parent(struct device_node
>> *node)
>> +{
>> +       return NULL;
>> +}
>> +
>>  static inline struct device_node *of_get_next_child(
>>         const struct device_node *node, struct device_node *prev)
>>  {
>> --
>> 1.9.1
>>
>

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] of: Add empty of_get_next_parent() for !OF
       [not found]         ` <57872.10.24.5.56.1430436421.squirrel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
@ 2015-05-01  1:26           ` Rob Herring
       [not found]             ` <CAL_JsqJ_0LZ0i6BD4ECFJgaEPUkRM5qrDS1jKextB+bM5_iz5w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2015-05-01  1:26 UTC (permalink / raw)
  To: Ilkka Koskinen
  Cc: Grant Likely, Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA

On Thu, Apr 30, 2015 at 6:27 PM, Ilkka Koskinen
<ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> wrote:
> Hi,
>
> On Wed, April 29, 2015 16:03, Rob Herring wrote:
>> On Wed, Apr 29, 2015 at 5:44 PM, Ilkka Koskinen
>> <ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> wrote:
>>> From: Ilkka Koskinen <ilkka.koskinen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>>>
>>> Add an empty version of of_get_next_parent() in order to avoid
>>> build error.
>>
>> Some details on the build error and what introduced it please.
>
> I agree. I'll add a better description of the issue in the commit message.
>
> Some background: I'm basically implementing a parser that deals
> with both device tree and ACPI. If OF hasn't been enabled, there's no
> declaration or implementation of the function. I'm not aware if any
> existing code in the kernel introduces the bug though.

Then the build error is meaningless. Generally something like walking
up parents is only something core code would do and is why there is no
empty version. Your case may fit, but I'll have to wait and see your
code. So just include this in the series with the rest of your work.
I'll try not to run the other way when I see something ACPI related.
;)

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] of: Add empty of_get_next_parent() for !OF
       [not found]             ` <CAL_JsqJ_0LZ0i6BD4ECFJgaEPUkRM5qrDS1jKextB+bM5_iz5w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-05-02  6:11               ` Ilkka Koskinen
  0 siblings, 0 replies; 5+ messages in thread
From: Ilkka Koskinen @ 2015-05-02  6:11 UTC (permalink / raw)
  To: Rob Herring
  Cc: Ilkka Koskinen, Grant Likely, Rob Herring,
	devicetree-u79uwXL29TY76Z2rM5mHXA

On Thu, April 30, 2015 18:26, Rob Herring wrote:
> On Thu, Apr 30, 2015 at 6:27 PM, Ilkka Koskinen
> <ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> wrote:
>> Hi,
>>
>> On Wed, April 29, 2015 16:03, Rob Herring wrote:
>>> On Wed, Apr 29, 2015 at 5:44 PM, Ilkka Koskinen
>>> <ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> wrote:
>>>> From: Ilkka Koskinen <ilkka.koskinen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>>>>
>>>> Add an empty version of of_get_next_parent() in order to avoid
>>>> build error.
>>>
>>> Some details on the build error and what introduced it please.
>>
>> I agree. I'll add a better description of the issue in the commit
>> message.
>>
>> Some background: I'm basically implementing a parser that deals
>> with both device tree and ACPI. If OF hasn't been enabled, there's no
>> declaration or implementation of the function. I'm not aware if any
>> existing code in the kernel introduces the bug though.
>
> Then the build error is meaningless. Generally something like walking
> up parents is only something core code would do and is why there is no
> empty version. Your case may fit, but I'll have to wait and see your
> code. So just include this in the series with the rest of your work.
> I'll try not to run the other way when I see something ACPI related.
> ;)

Ok, sounds good to me.

Thanks,
Ilkka

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-02  6:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-29 22:44 [PATCH] of: Add empty of_get_next_parent() for !OF Ilkka Koskinen
     [not found] ` <1430347479-1715-1-git-send-email-ilkka.koskinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-04-29 23:03   ` Rob Herring
     [not found]     ` <CAL_JsqJEQmJT9+4t=PSc_K6yRxuTRObewfdghXmBgDTg=Sm+qQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-30 23:27       ` Ilkka Koskinen
     [not found]         ` <57872.10.24.5.56.1430436421.squirrel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-05-01  1:26           ` Rob Herring
     [not found]             ` <CAL_JsqJ_0LZ0i6BD4ECFJgaEPUkRM5qrDS1jKextB+bM5_iz5w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-02  6:11               ` Ilkka Koskinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.