From 72c5dff2c349a64fa1dbc7c09d46b5ce9b35bfc9 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Tue, 10 Nov 2015 08:19:53 +0530 Subject: [PATCH] of: plugin-manager: fix section mismatch error Fix following section mismatch error: /** WARNING: vmlinux.o(.text+0x8ba968): Section mismatch in reference from the function update_target_node() to the variable .init.text:$x The function update_target_node() references the variable __init $x. This is often because update_target_node lacks a __init annotation or the annotation of $x is wrong. **/ Change-Id: I853c3b4f77ebed587ec122be550acd024bb132a8 Signed-off-by: Laxman Dewangan Reviewed-on: http://git-master/r/831096 (cherry picked from commit 5a0b1037f77e168e421e80598f924180ab2aeaa9) Reviewed-on: http://git-master/r/842368 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Shreshtha Sahu Tested-by: Shreshtha Sahu --- drivers/of/plugin-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/plugin-manager.c b/drivers/of/plugin-manager.c index 2321aa6c4df..440031f5947 100644 --- a/drivers/of/plugin-manager.c +++ b/drivers/of/plugin-manager.c @@ -106,7 +106,7 @@ static int __init update_target_node_from_overlay( return 0; } -static int update_target_node(struct device_node *target, +static int __init update_target_node(struct device_node *target, struct device_node *overlay) { struct device_node *tchild, *ochild; -- 2.39.2