From c49cf315dadbf1cfe2f5e80c1f3c1ae27ad0761e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 19 Jul 2013 02:17:18 +0000 Subject: move trace.h include to global cmogstored.h We'll have tracing everywhere, so it's too much maintenance overhead to add it to every file which wants it. Increased build-times are a problem, but less than the maintenance overhead of finding the right headers. --- cmogstored.h | 3 +++ http.c | 1 - ioq.c | 1 - mgmt.c | 1 - trywrite.c | 1 - 5 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cmogstored.h b/cmogstored.h index 32868cb..3c1801c 100644 --- a/cmogstored.h +++ b/cmogstored.h @@ -652,3 +652,6 @@ void mog_ioq_adjust(struct mog_ioq *, unsigned value); void mog_ioq_destroy(struct mog_ioq *); bool mog_ioq_unblock(struct mog_fd *); void mog_ioq_requeue_prepare(struct mog_ioq *); + +/* systemtap stuff */ +#include "trace.h" diff --git a/http.c b/http.c index a7f9bad..2f3b29b 100644 --- a/http.c +++ b/http.c @@ -3,7 +3,6 @@ * License: GPLv3 or later (see COPYING for details) */ #include "cmogstored.h" -#include "trace.h" #include "http.h" /* diff --git a/ioq.c b/ioq.c index 4f62cc5..339ef3d 100644 --- a/ioq.c +++ b/ioq.c @@ -3,7 +3,6 @@ * License: GPLv3 or later (see COPYING for details) */ #include "cmogstored.h" -#include "trace.h" /* * This is a semaphore-like API with explicit queueing and activation, * so contended scheduling/wakeups happen via epoll/kqueue and there diff --git a/mgmt.c b/mgmt.c index 6dd1b77..bc6b335 100644 --- a/mgmt.c +++ b/mgmt.c @@ -3,7 +3,6 @@ * License: GPLv3 or later (see COPYING for details) */ #include "cmogstored.h" -#include "trace.h" #include "mgmt.h" #include "digest.h" #include "ioprio.h" diff --git a/trywrite.c b/trywrite.c index d19f653..7078748 100644 --- a/trywrite.c +++ b/trywrite.c @@ -3,7 +3,6 @@ * License: GPLv3 or later (see COPYING for details) */ #include "cmogstored.h" -#include "trace.h" struct mog_wbuf { size_t len; -- cgit v1.2.3-24-ge0c7