Fix warning on platforms without disk util support
authorJens Axboe <axboe@kernel.dk>
Fri, 12 Apr 2013 14:19:03 +0000 (16:19 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Apr 2013 14:19:03 +0000 (16:19 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diskutil.h

index ddd6471..6ae4aee 100644 (file)
@@ -109,7 +109,10 @@ extern int update_io_ticks(void);
 extern void setup_disk_util(void);
 extern void disk_util_prune_entries(void);
 #else
-#define print_disk_util(dus, agg, terse)
+static inline void print_disk_util(struct disk_util_stat *du,
+                                  struct disk_util_agg *agg, int terse)
+{
+}
 #define show_disk_util(terse, parent)
 #define disk_util_prune_entries()
 #define init_disk_util(td)