summaryrefslogtreecommitdiffstats
path: root/kernel/rcu
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-05-26 18:32:57 +0200
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 21:00:45 +0200
commit2990750bceb05c3cdeae3a6d2683cbc4ae4de15e (patch)
tree23179343068a81d5f0f316bb17c6d4c054c4c508 /kernel/rcu
parentrefperf: Dynamically allocate thread-summary output buffer (diff)
downloadlinux-2990750bceb05c3cdeae3a6d2683cbc4ae4de15e.tar.xz
linux-2990750bceb05c3cdeae3a6d2683cbc4ae4de15e.zip
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 <lkp@intel.com> Cc: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/refperf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/refperf.c b/kernel/rcu/refperf.c
index fc940e3dba1f..0a900f3ae151 100644
--- a/kernel/rcu/refperf.c
+++ b/kernel/rcu/refperf.c
@@ -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;