Skip to contentSkip to conversation

clock_imx8mq: Make do_imx8m_showclocks() static

PATCH New Pedro Jardim 1 participant 1 message Jan 23, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 2/4 clock_imx8mq: Make do_imx8m_showclocks() static

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,

     ^~~~~~~~~~~~~~~~~~~

---
Chages since v1:

- Fixed patch corruption

 arch/arm/mach-imx/imx8m/clock_imx8mq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/imx8m/clock_imx8mq.c +1 -1
index 663fe4d3ca..d8530cc808 100644
@@ -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;
Signature · 1 line
2.17.1