Move unused and other attributes to the compiler section
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/compiler/compiler.h b/compiler/compiler.h
index 72e8419..036ba20 100644
--- a/compiler/compiler.h
+++ b/compiler/compiler.h
@@ -13,4 +13,11 @@
#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