[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210630182114.GA45709@e2f15dc0397a>
Date: Thu, 1 Jul 2021 02:21:14 +0800
From: kernel test robot <lkp@...el.com>
To: Abd-Alrhman Masalkhi <abd.masalkhi@...il.com>, axboe@...nel.dk
Cc: kbuild-all@...ts.01.org, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org,
Abd-Alrhman Masalkhi <abd.masalkhi@...il.com>
Subject: [RFC PATCH] block: print_disk_stats() can be static
block/genhd.c:1110:6: warning: symbol 'print_disk_stats' was not declared. Should it be static?
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: kernel test robot <lkp@...el.com>
---
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 "
Powered by blists - more mailing lists