Fix build issue for non-cgroup support
authorJens Axboe <axboe@kernel.dk>
Wed, 15 Feb 2012 16:30:35 +0000 (17:30 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Feb 2012 16:30:35 +0000 (17:30 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
cgroup.h
fio.c

index 68ecfcd40ae466a7f455e07c04635b09b7a012ed..d91f7e7bc6fca7114cd7ebc605fe74eba04ad24d 100644 (file)
--- a/cgroup.h
+++ b/cgroup.h
@@ -21,7 +21,7 @@ static inline void cgroup_shutdown(struct thread_data *td, char **mnt)
 {
 }
 
-void cgroup_kill(struct flist_head *list)
+static inline void void cgroup_kill(struct flist_head *list)
 {
 }
 
diff --git a/fio.c b/fio.c
index 5a99318ed4b4e89fa355b4a80b40082c631dd2ca..8a79ebed013e3a55f153a64939357a3382ba358a 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -42,7 +42,6 @@
 #include "verify.h"
 #include "trim.h"
 #include "diskutil.h"
-#include "cgroup.h"
 #include "profile.h"
 #include "lib/rand.h"
 #include "memalign.h"