Thread (5 messages) 5 messages, 2 authors, 2021-06-30

[RFC PATCH] block: print_disk_stats() can be static

flat view
STALE1928d

From: kernel test robot <hidden>
Date: 2021-06-30 18:22:06
Also in: lkml, oe-kbuild-all
Subsystem: block layer, the rest · Maintainers: Jens Axboe, Linus Torvalds

block/genhd.c:1110:6: warning: symbol 'print_disk_stats' was not declared. Should it be static?

Reported-by: kernel test robot <redacted>
Signed-off-by: kernel test robot <redacted>
---
 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 "
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help