Commit f79a334e authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 497d40b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 unsigned int __thread seed = 0;
static __thread unsigned int seed = 0;

static void
submit_single_io(struct ns_entry *entry)
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ struct nvme_driver g_nvme_driver = {
};

int32_t		nvme_retry_count;
int __thread	nvme_thread_ioq_index = -1;
__thread int	nvme_thread_ioq_index = -1;


/**
+1 −1
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ struct nvme_controller {
	struct nvme_namespace_data	*nsdata;
};

extern int __thread nvme_thread_ioq_index;
extern __thread int nvme_thread_ioq_index;

struct nvme_driver {
	nvme_mutex_t	lock;
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ struct nvme_driver g_nvme_driver = {

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,
			 uint16_t num_entries, uint16_t num_trackers,