Fix build with FIO_INC_DEBUG not included
authorJens Axboe <jens.axboe@oracle.com>
Fri, 30 May 2008 20:25:32 +0000 (22:25 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 30 May 2008 20:25:32 +0000 (22:25 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
debug.h
init.c

diff --git a/debug.h b/debug.h
index 160f48c3b75a9bcfc62eb0ce614181f5daa5a088..a9e9e9352531c3d89d4853b5ad528e69daab210d 100644 (file)
--- a/debug.h
+++ b/debug.h
@@ -18,6 +18,8 @@ enum {
        FD_DEBUG_MAX,
 };
 
        FD_DEBUG_MAX,
 };
 
+extern unsigned int fio_debug_jobno, *fio_debug_jobp;
+
 #ifdef FIO_INC_DEBUG
 struct debug_level {
        const char *name;
 #ifdef FIO_INC_DEBUG
 struct debug_level {
        const char *name;
@@ -27,7 +29,6 @@ struct debug_level {
 extern struct debug_level debug_levels[];
 
 extern unsigned long fio_debug;
 extern struct debug_level debug_levels[];
 
 extern unsigned long fio_debug;
-extern unsigned int fio_debug_jobno, *fio_debug_jobp;
 
 #define dprint(type, str, args...)                             \
        do {                                                    \
 
 #define dprint(type, str, args...)                             \
        do {                                                    \
diff --git a/init.c b/init.c
index 00eb592bef7fadddc1314a77658b26c2637475de..71fe4be51bdc63acdbc6f6f36cf082dd9195d27a 100644 (file)
--- a/init.c
+++ b/init.c
@@ -916,7 +916,7 @@ static int set_debug(const char *string)
        return 0;
 }
 #else
        return 0;
 }
 #else
-static void set_debug(const char *string)
+static int set_debug(const char *string)
 {
        log_err("fio: debug tracing not included in build\n");
        return 1;
 {
        log_err("fio: debug tracing not included in build\n");
        return 1;