From: Michael Jeanson Date: Tue, 17 Nov 2020 20:22:24 +0000 (-0500) Subject: fix: explicitly include urcu/config.h in files using CONFIG_RCU_ defines X-Git-Tag: v0.11.3~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ae5058382f15ded12a33fa951536a23faee10733;p=urcu.git fix: explicitly include urcu/config.h in files using CONFIG_RCU_ defines Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/urcu/debug.h b/include/urcu/debug.h index 14b50b6..4a7eac9 100644 --- a/include/urcu/debug.h +++ b/include/urcu/debug.h @@ -21,6 +21,8 @@ #include +#include + #if defined(DEBUG_RCU) || defined(CONFIG_RCU_DEBUG) #define urcu_assert(...) assert(__VA_ARGS__) #else diff --git a/include/urcu/uatomic/x86.h b/include/urcu/uatomic/x86.h index 129a2f5..2a4ea1c 100644 --- a/include/urcu/uatomic/x86.h +++ b/include/urcu/uatomic/x86.h @@ -20,6 +20,7 @@ * Boehm-Demers-Weiser conservative garbage collector. */ +#include #include #include diff --git a/include/urcu/urcu-qsbr.h b/include/urcu/urcu-qsbr.h index 28e6065..fd6cbda 100644 --- a/include/urcu/urcu-qsbr.h +++ b/include/urcu/urcu-qsbr.h @@ -31,6 +31,8 @@ #include #include +#include + /* * See urcu/pointer.h and urcu/static/pointer.h for pointer * publication headers. diff --git a/src/urcu-bp.c b/src/urcu-bp.c index 33f2807..ff6b3a7 100644 --- a/src/urcu-bp.c +++ b/src/urcu-bp.c @@ -37,6 +37,7 @@ #include #include +#include #include #include #include diff --git a/src/urcu-utils.h b/src/urcu-utils.h index 407f42e..69e37bd 100644 --- a/src/urcu-utils.h +++ b/src/urcu-utils.h @@ -23,6 +23,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #define urcu_stringify(a) _urcu_stringify(a) #define _urcu_stringify(a) #a diff --git a/src/urcu.c b/src/urcu.c index f6ca5f8..2ebe993 100644 --- a/src/urcu.c +++ b/src/urcu.c @@ -38,6 +38,7 @@ #include #include +#include #include #include #include