[PATCH 08/19] powerpc/tau: Make some function static

From: Mathieu Malaterre
Date: Thu Mar 22 2018 - 16:23:47 EST


These functions can all be static, make it so. Fix warnings treated as
errors with W=1:

arch/powerpc/kernel/tau_6xx.c:53:6: error: no previous prototype for âset_thresholdsâ [-Werror=missing-prototypes]
arch/powerpc/kernel/tau_6xx.c:73:6: error: no previous prototype for âTAUupdateâ [-Werror=missing-prototypes]
arch/powerpc/kernel/tau_6xx.c:208:13: error: no previous prototype for âTAU_init_smpâ [-Werror=missing-prototypes]
arch/powerpc/kernel/tau_6xx.c:220:12: error: no previous prototype for âTAU_initâ [-Werror=missing-prototypes]
arch/powerpc/kernel/tau_6xx.c:126:6: error: no previous prototype for âTAUExceptionâ [-Werror=missing-prototypes]

Signed-off-by: Mathieu Malaterre <malat@xxxxxxxxxx>
---
arch/powerpc/kernel/tau_6xx.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/powerpc/kernel/tau_6xx.c b/arch/powerpc/kernel/tau_6xx.c
index 8cdd852aedd1..1fc6a89a978e 100644
--- a/arch/powerpc/kernel/tau_6xx.c
+++ b/arch/powerpc/kernel/tau_6xx.c
@@ -50,7 +50,7 @@ struct timer_list tau_timer;
#define shrink_timer 2*HZ /* period between shrinking the window */
#define min_window 2 /* minimum window size, degrees C */

-void set_thresholds(unsigned long cpu)
+static void set_thresholds(unsigned long cpu)
{
#ifdef CONFIG_TAU_INT
/*
@@ -70,7 +70,7 @@ void set_thresholds(unsigned long cpu)
#endif
}

-void TAUupdate(int cpu)
+static void TAUupdate(int cpu)
{
unsigned thrm;

@@ -205,7 +205,7 @@ static void tau_timeout_smp(struct timer_list *unused)

int tau_initialized = 0;

-void __init TAU_init_smp(void * info)
+static void __init TAU_init_smp(void *info)
{
unsigned long cpu = smp_processor_id();

@@ -217,7 +217,7 @@ void __init TAU_init_smp(void * info)
set_thresholds(cpu);
}

-int __init TAU_init(void)
+static int __init TAU_init(void)
{
/* We assume in SMP that if one CPU has TAU support, they
* all have it --BenH
--
2.11.0