linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] <linux/of.h>: add stub for of_get_next_parent() to fix qcom build error
@ 2020-06-29 16:43 Randy Dunlap
  2020-06-29 19:25 ` Bjorn Andersson
  2020-07-10 15:28 ` Rob Herring
  0 siblings, 2 replies; 6+ messages in thread
From: Randy Dunlap @ 2020-06-29 16:43 UTC (permalink / raw)
  To: LKML, linux-next, Rob Herring, Frank Rowand
  Cc: devicetree, Andy Gross, Bjorn Andersson, linux-arm-msm

From: Randy Dunlap <rdunlap@infradead.org>

Fix a (COMPILE_TEST) build error when CONFIG_OF is not set/enabled
by adding a stub for of_get_next_parent().

../drivers/soc/qcom/qcom-geni-se.c:819:11: error: implicit declaration of function 'of_get_next_parent'; did you mean 'of_get_parent'? [-Werror=implicit-function-declaration]
../drivers/soc/qcom/qcom-geni-se.c:819:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: devicetree@vger.kernel.org
Cc: Andy Gross <agross@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: linux-arm-msm@vger.kernel.org
---
 include/linux/of.h |    5 +++++
 1 file changed, 5 insertions(+)

--- linux-next-20200629.orig/include/linux/of.h
+++ linux-next-20200629/include/linux/of.h
@@ -630,6 +630,11 @@ static inline struct device_node *of_get
 	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)
 {



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

end of thread, other threads:[~2020-07-11 19:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 16:43 [PATCH -next] <linux/of.h>: add stub for of_get_next_parent() to fix qcom build error Randy Dunlap
2020-06-29 19:25 ` Bjorn Andersson
2020-07-10 15:28 ` Rob Herring
2020-07-10 23:40   ` Randy Dunlap
2020-07-11  1:59     ` Stephen Rothwell
2020-07-11 19:41     ` Bjorn Andersson

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).