Skip to content

Commit 943c8a8

Browse files
rddunlapandersson
authored andcommitted
<linux/of.h>: add stub for of_get_next_parent() to fix qcom build error
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] Fixes: 048eb90 ("soc: qcom-geni-se: Add interconnect support to fix earlycon crash") Acked-by: Rob Herring <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Randy Dunlap <[email protected]> Cc: Rob Herring <[email protected]> Cc: Frank Rowand <[email protected]> Cc: [email protected] Cc: Andy Gross <[email protected]> Cc: Bjorn Andersson <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 6130068 commit 943c8a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/of.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,11 @@ static inline struct device_node *of_get_parent(const struct device_node *node)
630630
return NULL;
631631
}
632632

633+
static inline struct device_node *of_get_next_parent(struct device_node *node)
634+
{
635+
return NULL;
636+
}
637+
633638
static inline struct device_node *of_get_next_child(
634639
const struct device_node *node, struct device_node *prev)
635640
{

0 commit comments

Comments
 (0)