summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2019-08-14 13:10:06 -0700
committerJens Axboe <axboe@kernel.dk>2019-08-14 15:01:29 -0600
commit379e5f09a16f789f3d15ff5541a42e1e74d2b383 (patch)
treeda91e264c370e64d7bbddecaa59a685ecb9d7c4f
parent937ec971236d98089b63217635294c788ea00bce (diff)
downloadfio-379e5f09a16f789f3d15ff5541a42e1e74d2b383.tar.gz
fio-379e5f09a16f789f3d15ff5541a42e1e74d2b383.tar.bz2
zbd: Declare local functions 'static'
This patch fixes two sparse warnings. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--zbd.c6
1 files 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;