Skip to contentSkip to conversation

clk: versal: Mark versal_clock_setup() as static

PATCH Applied Venkatesh Yadav Abbarapu 2 participants 2 messages Oct 7, 2022 – Oct 10, 2022 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: versal: Mark versal_clock_setup() as static

Fix the following sparse and compile time warning
triggered with W=1:

drivers/clk/clk_versal.c:605:5:
warning: no previous prototype for 'versal_clock_setup' [-Wmissing-prototypes]
605 | int versal_clock_setup(void)

---

 drivers/clk/clk_versal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/clk_versal.c +1 -1
index b2f62061ce..76fde00491 100644
@@ -602,7 +602,7 @@ static void versal_get_clock_info(void)
 	}
 }
 
-int versal_clock_setup(void)
+static int versal_clock_setup(void)
 {
 	int ret;
 
Signature · 1 line
2.17.1
Applied
#1 lore raw
Quoted 19 lines · Venkatesh Yadav Abbarapu

Fix the following sparse and compile time warning
triggered with W=1:

drivers/clk/clk_versal.c:605:5:
warning: no previous prototype for 'versal_clock_setup' [-Wmissing-prototypes]
605 | int versal_clock_setup(void)

---

  drivers/clk/clk_versal.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/clk_versal.c +0 -0
index b2f62061ce..76fde00491 100644

drivers/clk/clk_versal.c static void versal_get_clock_info(void) · line 608

Quoted 8 lines
drivers/clk/clk_versal.c +1 -1
@@ -602,7 +602,7 @@ static void versal_get_clock_info(void)
  	}
  }
 
-int versal_clock_setup(void)
+static int versal_clock_setup(void)
  {
  	int ret;
 

Applied.
M