mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Akash Asthana <akashast@codeaurora.org>
To: robh+dt@kernel.org
Cc: bjorn.andersson@linaro.org, mka@chromium.org,
	linux-kernel@vger.kernel.org, saipraka@codeaurora.org,
	msavaliy@codeaurora.org, Akash Asthana <akashast@codeaurora.org>
Subject: [PATCH] of: Add stub for of_get_next_parent
Date: Fri, 10 Jul 2020 13:49:32 +0530	[thread overview]
Message-ID: <1594369172-27278-1-git-send-email-akashast@codeaurora.org> (raw)

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


             reply	other threads:[~2020-07-10  8:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-10  8:19 Akash Asthana [this message]
2020-07-10 15:29 ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1594369172-27278-1-git-send-email-akashast@codeaurora.org \
    --to=akashast@codeaurora.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mka@chromium.org \
    --cc=msavaliy@codeaurora.org \
    --cc=robh+dt@kernel.org \
    --cc=saipraka@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®