Skip to content

Commit d013496

Browse files
JasonYanHwrostedt
authored andcommitted
tracing: Convert local functions in tracing_map.c to static
Fix the following sparse warning: kernel/trace/tracing_map.c:286:6: warning: symbol 'tracing_map_array_clear' was not declared. Should it be static? kernel/trace/tracing_map.c:297:6: warning: symbol 'tracing_map_array_free' was not declared. Should it be static? kernel/trace/tracing_map.c:319:26: warning: symbol 'tracing_map_array_alloc' was not declared. Should it be static? Link: http://lkml.kernel.org/r/[email protected] Reported-by: Hulk Robot <[email protected]> Signed-off-by: Jason Yan <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent a2806ef commit d013496

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/trace/tracing_map.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ int tracing_map_add_key_field(struct tracing_map *map,
283283
return idx;
284284
}
285285

286-
void tracing_map_array_clear(struct tracing_map_array *a)
286+
static void tracing_map_array_clear(struct tracing_map_array *a)
287287
{
288288
unsigned int i;
289289

@@ -294,7 +294,7 @@ void tracing_map_array_clear(struct tracing_map_array *a)
294294
memset(a->pages[i], 0, PAGE_SIZE);
295295
}
296296

297-
void tracing_map_array_free(struct tracing_map_array *a)
297+
static void tracing_map_array_free(struct tracing_map_array *a)
298298
{
299299
unsigned int i;
300300

@@ -316,7 +316,7 @@ void tracing_map_array_free(struct tracing_map_array *a)
316316
kfree(a);
317317
}
318318

319-
struct tracing_map_array *tracing_map_array_alloc(unsigned int n_elts,
319+
static struct tracing_map_array *tracing_map_array_alloc(unsigned int n_elts,
320320
unsigned int entry_size)
321321
{
322322
struct tracing_map_array *a;

0 commit comments

Comments
 (0)