summaryrefslogtreecommitdiff
path: root/arch/x86/platform/olpc
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-05-29 11:34:02 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-06-11 21:17:57 +0300
commitb8a84365bbff0f860c5dc5795405430d92d68966 (patch)
treec62fe6fef326af4c7f91dad3fa29333a9904bb07 /arch/x86/platform/olpc
parentcdaf018c54bd957d5ee00b1b8c3c74e18138ee6e (diff)
downloadlinux-b8a84365bbff0f860c5dc5795405430d92d68966.tar.xz
Platform: OLPC: Make olpc_dt_compatible_match() static __init
Addresses a kbuild warning: >> WARNING: vmlinux.o(.text+0x3b764): Section mismatch in reference from the function olpc_dt_compatible_match() to the function .init.text:olpc_dt_getproperty() Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reported-by: kbuild test robot <lkp@intel.com> Fixes: a7a9bacb9a32 (x86/platform/olpc: Use a correct version when making up a battery node) Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'arch/x86/platform/olpc')
-rw-r--r--arch/x86/platform/olpc/olpc_dt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/platform/olpc/olpc_dt.c b/arch/x86/platform/olpc/olpc_dt.c
index 0296c5b55e6f..114c52986568 100644
--- a/arch/x86/platform/olpc/olpc_dt.c
+++ b/arch/x86/platform/olpc/olpc_dt.c
@@ -220,7 +220,7 @@ static u32 __init olpc_dt_get_board_revision(void)
return be32_to_cpu(rev);
}
-int olpc_dt_compatible_match(phandle node, const char *compat)
+static int __init olpc_dt_compatible_match(phandle node, const char *compat)
{
char buf[64], *p;
int plen, len;