Skip to contentSkip to conversation

trace/osnoise: make timerlat_min_period and timerlat_max_period static

PATCH New Jiapeng Chong 1 participant 1 message Aug 20, 2021

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

PATCH 1/1 trace/osnoise: make timerlat_min_period and timerlat_max_period static

This symbol is not used outside of trace_osnoise.c, so marks it static.

Fix the following sparse warning:

kernel/trace/trace_osnoise.c:1821:5: warning: symbol 'timerlat_min_period' was not declared. Should it be static?

---
 kernel/trace/trace_osnoise.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/trace/trace_osnoise.c +2 -2
index b61eefe..004cb3c 100644
@@ -1818,8 +1818,8 @@ static void osnoise_init_hotplug_support(void)
 /*
  * osnoise/timerlat_period: min 100 us, max 1 s
  */
-u64 timerlat_min_period = 100;
-u64 timerlat_max_period = 1000000;
+static u64 timerlat_min_period = 100;
+static u64 timerlat_max_period = 1000000;
 static struct trace_min_max_param timerlat_period = {
 	.lock	= &interface_lock,
 	.val	= &osnoise_data.timerlat_period,
Signature · 1 line
1.8.3.1