zbd: Declare local functions 'static'
authorBart Van Assche <bvanassche@acm.org>
Wed, 14 Aug 2019 20:10:06 +0000 (13:10 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 14 Aug 2019 21:01:29 +0000 (15:01 -0600)
This patch fixes two sparse warnings.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
zbd.c

diff --git a/zbd.c b/zbd.c
index d7e91e37e010c0194da07636b29ce058ebd2db13..2383c57dfc90aa8258e4ebcb5a2c6264de40457b 100644 (file)
--- a/zbd.c
+++ b/zbd.c
@@ -481,7 +481,7 @@ out:
  *
  * Returns 0 upon success and a negative error code upon failure.
  */
  *
  * 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;
 {
        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.
  */
  * 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;
 {
        const uint32_t min_bs = td->o.min_bs[io_u->ddir];
        const struct fio_file *f = io_u->file;