Skip to contentSkip to conversation

of: Add empty of_get_next_parent() for !OF

PATCH In review Ilkka Koskinen 2 participants 5 messages Apr 29, 2015 – May 2, 2015 4 messages not in the archive Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of: Add empty of_get_next_parent() for !OF

From: Ilkka Koskinen <[email protected]>

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

---
 include/linux/of.h | 5 +++++
 1 file changed, 5 insertions(+)
include/linux/of.h +5 -0
index dfde07e..416158f 100644
@@ -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)
 {
Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1430347479-1715-1-git-send-email-ilkka.koskinen-VuQAYsv1563Yd54FQh9/[email protected]

#2 lore raw
Quoted 4 lines · Ilkka Koskinen

From: Ilkka Koskinen <[email protected]>

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.

Quoted 22 lines
---
 include/linux/of.h | 5 +++++
 1 file changed, 5 insertions(+)
include/linux/of.h +5 -1
index dfde07e..416158f 100644
@@ -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)
 {
--
Quoted 2 lines

1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): CAL_JsqJEQmJT9+4t=PSc_K6yRxuTRObewfdghXmBgDTg=Sm+qQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw

Hi,

Quoted 8 lines · Rob Herring
Quoted 4 lines · Ilkka Koskinen

From: Ilkka Koskinen <[email protected]>

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

Quoted 14 lines
Quoted 14 lines
---
 include/linux/of.h | 5 +++++
 1 file changed, 5 insertions(+)
include/linux/of.h +0 -0
index dfde07e..416158f 100644
@@ -425,6 +425,11 @@ static inline struct device_node
 *of_get_parent(const struct device_node *node)
        return NULL;
 }
 
Quoted 13 lines
Quoted 7 lines
include/linux/of.h +5 -0
+static inline struct device_node *of_get_next_parent(struct device_node
 *node)
+{
+       return NULL;
+}
+
 static inline struct device_node *of_get_next_child(
Quoted 5 lines

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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 57872.10.24.5.56.1430436421.squirrel-VuQAYsv1563Yd54FQh9/[email protected]

#6 lore raw
Quoted 10 lines · Ilkka Koskinen

Hi,

Quoted 7 lines · Rob Herring
Quoted 4 lines · Ilkka Koskinen

From: Ilkka Koskinen <[email protected]>

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

Quoted 8 lines
Quoted 1 line

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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): CAL_JsqJ_0LZ0i6BD4ECFJgaEPUkRM5qrDS1jKextB+bM5_iz5w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#8 lore raw
Quoted 22 lines · Rob Herring
Quoted 12 lines · Ilkka Koskinen

Hi,

Quoted 8 lines · Rob Herring
Quoted 4 lines · Ilkka Koskinen

From: Ilkka Koskinen <[email protected]>

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.

Quoted 7 lines

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.

Quoted 6 lines

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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html