Move unused and other attributes to the compiler section
authorJens Axboe <axboe@kernel.dk>
Wed, 17 Apr 2013 17:29:37 +0000 (19:29 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 Apr 2013 17:29:37 +0000 (19:29 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
compiler/compiler.h
fio.h

index 72e84197584e1aa8872e2905bc70710989443416..036ba208e861e79225a3e8827f5ff81895c50818 100644 (file)
 #define __must_check
 #endif
 
+/*
+ * Mark unused variables passed to ops functions as unused, to silence gcc
+ */
+#define fio_unused     __attribute__((__unused__))
+#define fio_init       __attribute__((constructor))
+#define fio_exit       __attribute__((destructor))
+
 #endif
diff --git a/fio.h b/fio.h
index d5746dd4453bb42de63ca581d5969b769d5fbcb4..3411bb4a2c286235c0b49504bc840c5b5f948368 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -471,13 +471,6 @@ extern int is_blktrace(const char *);
 extern int load_blktrace(struct thread_data *, const char *);
 #endif
 
-/*
- * Mark unused variables passed to ops functions as unused, to silence gcc
- */
-#define fio_unused     __attribute((__unused__))
-#define fio_init       __attribute__((constructor))
-#define fio_exit       __attribute__((destructor))
-
 #define for_each_td(td, i)     \
        for ((i) = 0, (td) = &threads[0]; (i) < (int) thread_number; (i)++, (td)++)
 #define for_each_file(td, f, i)        \