diff --git a/examples/accel/perf/accel_perf.c b/examples/accel/perf/accel_perf.c index bfdbc42cb..dd530b73f 100644 --- a/examples/accel/perf/accel_perf.c +++ b/examples/accel/perf/accel_perf.c @@ -60,7 +60,19 @@ static struct worker_thread *g_workers = NULL; static int g_num_workers = 0; static pthread_mutex_t g_workers_lock = PTHREAD_MUTEX_INITIALIZER; uint64_t g_capabilites; -struct ap_task; + +struct worker_thread; +static void accel_done(void *ref, int status); + +struct ap_task { + void *src; + void *dst; + void *dst2; + struct worker_thread *worker; + int status; + int expected_status; /* used for the compare operation */ + TAILQ_ENTRY(ap_task) link; +}; struct worker_thread { struct spdk_io_channel *ch; @@ -77,16 +89,6 @@ struct worker_thread { struct spdk_poller *stop_poller; }; -struct ap_task { - void *src; - void *dst; - void *dst2; - struct worker_thread *worker; - int status; - int expected_status; /* used for compare */ - TAILQ_ENTRY(ap_task) link; -}; - static void dump_user_config(struct spdk_app_opts *opts) {