clock_imx8mq: Make do_imx8m_showclocks() static
authorPedro Jardim <jardim.c.pedro@gmail.com>
Thu, 23 Jan 2020 13:20:51 +0000 (10:20 -0300)
committerLukasz Majewski <lukma@denx.de>
Sun, 26 Jan 2020 20:57:08 +0000 (21:57 +0100)
Since do_imx8m_showclocks() is only used inside this file, make it 'static'.

This fixes the following sparse warning:

arch/arm/mach-imx/imx8m/clock_imx8mq.c:836:5: warning: no previous prototype
 for ‘do_imx8m_showclocks’ [-Wmissing-prototypes]
 int do_imx8m_showclocks(cmd_tbl_t *cmdtp, int flag, int argc,
     ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Pedro Jardim <jardim.c.pedro@gmail.com>
arch/arm/mach-imx/imx8m/clock_imx8mq.c

index 663fe4d3ca534dbc37b6813664a20b1a4696f580..d8530cc808c7189ffa112ff9feb0f99a958d1b6a 100644 (file)
@@ -811,7 +811,7 @@ int clock_init(void)
  * Dump some clockes.
  */
 #ifndef CONFIG_SPL_BUILD
-int do_imx8m_showclocks(cmd_tbl_t *cmdtp, int flag, int argc,
+static int do_imx8m_showclocks(cmd_tbl_t *cmdtp, int flag, int argc,
                       char * const argv[])
 {
        u32 freq;