From: Jens Axboe Date: Wed, 17 Apr 2013 17:29:37 +0000 (+0200) Subject: Move unused and other attributes to the compiler section X-Git-Tag: fio-2.1~26 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=7b4203d7544db58920408f65977ebd00aaec6506;ds=sidebyside Move unused and other attributes to the compiler section Signed-off-by: Jens Axboe --- diff --git a/compiler/compiler.h b/compiler/compiler.h index 72e84197..036ba208 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 diff --git a/fio.h b/fio.h index d5746dd4..3411bb4a 100644 --- 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) \