[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210630203720.208003-1-abd.masalkhi@gmail.com>
Date: Wed, 30 Jun 2021 22:37:20 +0200
From: Abd-Alrhman Masalkhi <abd.masalkhi@...il.com>
To: axboe@...nel.dk
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
Abd-Alrhman Masalkhi <abd.masalkhi@...il.com>,
kernel test robot <lkp@...el.com>
Subject: [PATCH] block: Declearing print_disk_stats static to remove [-Wmissing-prototypes]
In the first patch I have not defined the print_disk_stats function
static so it triggered an [-Wmissing-prototypes] warning, fixing it
by defineing the function static.
Signed-off-by: Abd-Alrhman Masalkhi <abd.masalkhi@...il.com>
Reported-by: kernel test robot <lkp@...el.com>
---
block/genhd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/genhd.c b/block/genhd.c
index 5d393b2bc62c..803c3448f09a 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 "
--
2.29.0.rc1.dirty
Powered by blists - more mailing lists