* [PATCH] of: Add stub for of_get_next_parent
@ 2020-07-10 8:19 Akash Asthana
2020-07-10 15:29 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Akash Asthana @ 2020-07-10 8:19 UTC (permalink / raw)
To: robh+dt
Cc: bjorn.andersson, mka, linux-kernel, saipraka, msavaliy, Akash Asthana
Fixes compilation error reported on x86 platform:
drivers/soc/qcom/qcom-geni-se.c:819:11: error: implicit declaration of
function 'of_get_next_parent'.
drivers/soc/qcom/qcom-geni-se.c:819:9: warning: incompatible integer to
pointer conversion assigning to 'struct device_node *' from 'int'
Fixes: 048eb908a1f2 ("soc: qcom-geni-se: Add interconnect support to fix
earlycon crash")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
---
include/linux/of.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index c669c0a..72e7198 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -630,6 +630,12 @@ static inline struct device_node *of_get_parent(const struct device_node *node)
return NULL;
}
+static inline struct device_node *of_get_next_parent(
+ const struct device_node *node)
+{
+ return NULL;
+}
+
static inline struct device_node *of_get_next_child(
const struct device_node *node, struct device_node *prev)
{
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,\na Linux Foundation Collaborative Project
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] of: Add stub for of_get_next_parent
2020-07-10 8:19 [PATCH] of: Add stub for of_get_next_parent Akash Asthana
@ 2020-07-10 15:29 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2020-07-10 15:29 UTC (permalink / raw)
To: Akash Asthana
Cc: Bjorn Andersson, Matthias Kaehlcke, linux-kernel, saipraka, msavaliy
On Fri, Jul 10, 2020 at 2:19 AM Akash Asthana <akashast@codeaurora.org> wrote:
>
> Fixes compilation error reported on x86 platform:
>
> drivers/soc/qcom/qcom-geni-se.c:819:11: error: implicit declaration of
> function 'of_get_next_parent'.
>
> drivers/soc/qcom/qcom-geni-se.c:819:9: warning: incompatible integer to
> pointer conversion assigning to 'struct device_node *' from 'int'
>
> Fixes: 048eb908a1f2 ("soc: qcom-geni-se: Add interconnect support to fix
> earlycon crash")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Akash Asthana <akashast@codeaurora.org>
> ---
> include/linux/of.h | 6 ++++++
> 1 file changed, 6 insertions(+)
Already have a similar patch.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-10 15:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-10 8:19 [PATCH] of: Add stub for of_get_next_parent Akash Asthana
2020-07-10 15:29 ` Rob Herring
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.