]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
refperf: Make functions static
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 26 May 2020 16:32:57 +0000 (09:32 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:00:45 +0000 (12:00 -0700)
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 <lkp@intel.com>
Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/refperf.c

index fc940e3dba1f9de689a159df4e69ace78a0fbeee..0a900f3ae151cc7809a4ae4ac55a1f83e085cdb6 100644 (file)
@@ -283,7 +283,7 @@ end:
        return 0;
 }
 
-void reset_readers(void)
+static void reset_readers(void)
 {
        int i;
        struct reader_task *rt;
@@ -296,7 +296,7 @@ void reset_readers(void)
 }
 
 // Print the results of each reader and return the sum of all their durations.
-u64 process_durations(int n)
+static u64 process_durations(int n)
 {
        int i;
        struct reader_task *rt;