build: fix old-style declaration warnings
Fix all of the uses of __thread so they are at the beginning (similar to e.g. static). Don't actually enable -Wold-style-declaration, since clang doesn't understand that. Change-Id: I0dcbb758143eab90fc978334c8f256c6602cc4cd Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
497d40b19b
commit
f79a334e33
@ -299,7 +299,7 @@ void task_ctor(struct rte_mempool *mp, void *arg, void *__task, unsigned id)
|
|||||||
|
|
||||||
static void io_complete(void *ctx, const struct nvme_completion *completion);
|
static void io_complete(void *ctx, const struct nvme_completion *completion);
|
||||||
|
|
||||||
static unsigned int __thread seed = 0;
|
static __thread unsigned int seed = 0;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
submit_single_io(struct ns_entry *entry)
|
submit_single_io(struct ns_entry *entry)
|
||||||
|
@ -43,7 +43,7 @@ struct nvme_driver g_nvme_driver = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
int32_t nvme_retry_count;
|
int32_t nvme_retry_count;
|
||||||
int __thread nvme_thread_ioq_index = -1;
|
__thread int nvme_thread_ioq_index = -1;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -283,7 +283,7 @@ struct nvme_controller {
|
|||||||
struct nvme_namespace_data *nsdata;
|
struct nvme_namespace_data *nsdata;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int __thread nvme_thread_ioq_index;
|
extern __thread int nvme_thread_ioq_index;
|
||||||
|
|
||||||
struct nvme_driver {
|
struct nvme_driver {
|
||||||
nvme_mutex_t lock;
|
nvme_mutex_t lock;
|
||||||
|
@ -42,7 +42,7 @@ struct nvme_driver g_nvme_driver = {
|
|||||||
|
|
||||||
char outbuf[OUTBUF_SIZE];
|
char outbuf[OUTBUF_SIZE];
|
||||||
|
|
||||||
int __thread nvme_thread_ioq_index = -1;
|
__thread int nvme_thread_ioq_index = -1;
|
||||||
|
|
||||||
int nvme_qpair_construct(struct nvme_qpair *qpair, uint16_t id,
|
int nvme_qpair_construct(struct nvme_qpair *qpair, uint16_t id,
|
||||||
uint16_t num_entries, uint16_t num_trackers,
|
uint16_t num_entries, uint16_t num_trackers,
|
||||||
|
Loading…
Reference in New Issue
Block a user