Platform: OLPC: Make olpc_dt_compatible_match() static __init
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 29 May 2019 08:34:02 +0000 (10:34 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 11 Jun 2019 18:17:57 +0000 (21:17 +0300)
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>
arch/x86/platform/olpc/olpc_dt.c

index 0296c5b55e6f6b73ea181713cfc1f256fa707cb9..114c52986568bee1b6d147f507aa615f682c46ba 100644 (file)
@@ -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;