More __must_check annotations
authorJens Axboe <jens.axboe@oracle.com>
Tue, 20 Feb 2007 19:54:45 +0000 (20:54 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 20 Feb 2007 19:54:45 +0000 (20:54 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.h

diff --git a/fio.h b/fio.h
index e6931619f64373abd06c9792d227d3549baef851..304f658e272551d29420f97dc3b103e598913044 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -515,9 +515,9 @@ typedef int (endio_handler)(struct io_u *);
 /*
  * Log exports
  */
 /*
  * Log exports
  */
-extern int read_iolog_get(struct thread_data *, struct io_u *);
+extern int __must_check read_iolog_get(struct thread_data *, struct io_u *);
 extern void write_iolog_put(struct thread_data *, struct io_u *);
 extern void write_iolog_put(struct thread_data *, struct io_u *);
-extern int init_iolog(struct thread_data *td);
+extern int __must_check init_iolog(struct thread_data *td);
 extern void log_io_piece(struct thread_data *, struct io_u *);
 extern void prune_io_piece_log(struct thread_data *);
 extern void write_iolog_close(struct thread_data *);
 extern void log_io_piece(struct thread_data *, struct io_u *);
 extern void prune_io_piece_log(struct thread_data *);
 extern void write_iolog_close(struct thread_data *);
@@ -559,8 +559,8 @@ extern void fio_gettime(struct timeval *, void *);
 /*
  * Init functions
  */
 /*
  * Init functions
  */
-extern int parse_options(int, char **);
-extern int init_random_state(struct thread_data *);
+extern int __must_check parse_options(int, char **);
+extern int __must_check init_random_state(struct thread_data *);
 
 /*
  * File setup/shutdown
 
 /*
  * File setup/shutdown