From 379e5f09a16f789f3d15ff5541a42e1e74d2b383 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 14 Aug 2019 13:10:06 -0700 Subject: [PATCH] zbd: Declare local functions 'static' This patch fixes two sparse warnings. Signed-off-by: Bart Van Assche Signed-off-by: Jens Axboe --- zbd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zbd.c b/zbd.c index d7e91e37..2383c57d 100644 --- a/zbd.c +++ b/zbd.c @@ -481,7 +481,7 @@ out: * * Returns 0 upon success and a negative error code upon failure. */ -int zbd_create_zone_info(struct thread_data *td, struct fio_file *f) +static int zbd_create_zone_info(struct thread_data *td, struct fio_file *f) { enum blk_zoned_model zbd_model; int ret = 0; @@ -933,8 +933,8 @@ static void zbd_close_zone(struct thread_data *td, const struct fio_file *f, * a multiple of the fio block size. The caller must neither hold z->mutex * nor f->zbd_info->mutex. Returns with z->mutex held upon success. */ -struct fio_zone_info *zbd_convert_to_open_zone(struct thread_data *td, - struct io_u *io_u) +static struct fio_zone_info *zbd_convert_to_open_zone(struct thread_data *td, + struct io_u *io_u) { const uint32_t min_bs = td->o.min_bs[io_u->ddir]; const struct fio_file *f = io_u->file; -- 2.25.1