ARM: imx: mach-mx31lite: Make mx31lite_map_io static
authorMarco Franchi <marco.franchi@nxp.com>
Mon, 25 Sep 2017 18:55:59 +0000 (15:55 -0300)
committerShawn Guo <shawnguo@kernel.org>
Fri, 13 Oct 2017 06:44:08 +0000 (14:44 +0800)
The following build warning is seen with W=1:

warning: no previous prototype for ‘mx31lite_map_io’
[-Wmissing-prototypes] void __init mx31lite_map_io(void)

This function is only used in this file so make it "static".

Signed-off-by: Marco Franchi <marco.franchi@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/mach-mx31lite.c

index f033a57..a3250bc 100644 (file)
@@ -245,7 +245,7 @@ static struct map_desc mx31lite_io_desc[] __initdata = {
 /*
  * Set up static virtual mappings.
  */
-void __init mx31lite_map_io(void)
+static void __init mx31lite_map_io(void)
 {
        mx31_map_io();
        iotable_init(mx31lite_io_desc, ARRAY_SIZE(mx31lite_io_desc));