From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: From: Bart Van Assche Subject: [PATCH v3 1/7] zbd: Declare local functions 'static' Date: Wed, 14 Aug 2019 13:10:06 -0700 Message-Id: <20190814201012.253060-2-bvanassche@acm.org> In-Reply-To: <20190814201012.253060-1-bvanassche@acm.org> References: <20190814201012.253060-1-bvanassche@acm.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: Jens Axboe Cc: fio@vger.kernel.org, Bart Van Assche List-ID: This patch fixes two sparse warnings. Signed-off-by: Bart Van Assche --- zbd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zbd.c b/zbd.c index d7e91e37e010..2383c57dfc90 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.22.0.rc1