Skip to content

Commit 2990750

Browse files
committed
refperf: Make functions static
Because the reset_readers() and process_durations() functions are used only within kernel/rcu/refperf.c, this commit makes them static. Reported-by: kbuild test robot <[email protected]> Cc: Joel Fernandes (Google) <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 2e90de7 commit 2990750

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/rcu/refperf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ ref_perf_reader(void *arg)
283283
return 0;
284284
}
285285

286-
void reset_readers(void)
286+
static void reset_readers(void)
287287
{
288288
int i;
289289
struct reader_task *rt;
@@ -296,7 +296,7 @@ void reset_readers(void)
296296
}
297297

298298
// Print the results of each reader and return the sum of all their durations.
299-
u64 process_durations(int n)
299+
static u64 process_durations(int n)
300300
{
301301
int i;
302302
struct reader_task *rt;

0 commit comments

Comments
 (0)