]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
of: plugin-manager: fix section mismatch error
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 10 Nov 2015 02:49:53 +0000 (08:19 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 10 Dec 2015 05:33:02 +0000 (21:33 -0800)
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 <ldewangan@nvidia.com>
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 <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
drivers/of/plugin-manager.c

index 2321aa6c4df2b4c26ed207d442c3f9f1f408762b..440031f5947d5bbafb458e1b40c216350999acb3 100644 (file)
@@ -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;