[RFC PATCH] block: print_disk_stats() can be static
From: kernel test robot
Date: Wed Jun 30 2021 - 14:22:06 EST
block/genhd.c:1110:6: warning: symbol 'print_disk_stats' was not declared. Should it be static?
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
genhd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/genhd.c b/block/genhd.c
index 5d393b2bc62c3..803c3448f09ae 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -1107,8 +1107,8 @@ const struct device_type disk_type = {
#ifdef CONFIG_PROC_FS
-void print_disk_stats(struct seq_file *seqf,
- unsigned int inflight, struct disk_stats *stat)
+static void print_disk_stats(struct seq_file *seqf,
+ unsigned int inflight, struct disk_stats *stat)
{
seq_printf(seqf, "%lu %lu %lu %u "
"%lu %lu %lu %u "