From: Bart Van Assche Date: Wed, 14 Aug 2019 20:10:06 +0000 (-0700) Subject: zbd: Declare local functions 'static' X-Git-Tag: fio-3.16~32 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=379e5f09a16f789f3d15ff5541a42e1e74d2b383;ds=sidebyside zbd: Declare local functions 'static' This patch fixes two sparse warnings. Signed-off-by: Bart Van Assche Signed-off-by: Jens Axboe --- 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;