* [lttng-dev] [PATCH urcu] fix: explicitly include urcu/config.h in files using CONFIG_RCU_ defines
@ 2020-11-17 20:22 Michael Jeanson via lttng-dev
2020-11-17 20:34 ` Mathieu Desnoyers via lttng-dev
0 siblings, 1 reply; 2+ messages in thread
From: Michael Jeanson via lttng-dev @ 2020-11-17 20:22 UTC (permalink / raw)
To: lttng-dev
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
---
include/urcu/debug.h | 2 ++
include/urcu/uatomic/x86.h | 1 +
include/urcu/urcu-qsbr.h | 2 ++
src/urcu-bp.c | 1 +
src/urcu-utils.h | 2 ++
src/urcu.c | 1 +
6 files changed, 9 insertions(+)
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 <assert.h>
+#include <urcu/config.h>
+
#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 <urcu/config.h>
#include <urcu/compiler.h>
#include <urcu/system.h>
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 <stdlib.h>
#include <pthread.h>
+#include <urcu/config.h>
+
/*
* 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 05efd97..c2ac792 100644
--- a/src/urcu-bp.c
+++ b/src/urcu-bp.c
@@ -37,6 +37,7 @@
#include <stdbool.h>
#include <sys/mman.h>
+#include <urcu/config.h>
#include <urcu/arch.h>
#include <urcu/wfcqueue.h>
#include <urcu/map/urcu-bp.h>
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 <urcu/config.h>
+
#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 <stdbool.h>
#include <poll.h>
+#include <urcu/config.h>
#include <urcu/arch.h>
#include <urcu/wfcqueue.h>
#include <urcu/map/urcu.h>
--
2.29.2
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [lttng-dev] [PATCH urcu] fix: explicitly include urcu/config.h in files using CONFIG_RCU_ defines
2020-11-17 20:22 [lttng-dev] [PATCH urcu] fix: explicitly include urcu/config.h in files using CONFIG_RCU_ defines Michael Jeanson via lttng-dev
@ 2020-11-17 20:34 ` Mathieu Desnoyers via lttng-dev
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2020-11-17 20:34 UTC (permalink / raw)
To: Michael Jeanson; +Cc: lttng-dev
Merged into master, stable-0.11, stable-0.12, thanks!
Mathieu
----- On Nov 17, 2020, at 3:22 PM, Michael Jeanson mjeanson@efficios.com wrote:
> Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
> ---
> include/urcu/debug.h | 2 ++
> include/urcu/uatomic/x86.h | 1 +
> include/urcu/urcu-qsbr.h | 2 ++
> src/urcu-bp.c | 1 +
> src/urcu-utils.h | 2 ++
> src/urcu.c | 1 +
> 6 files changed, 9 insertions(+)
>
> 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 <assert.h>
>
> +#include <urcu/config.h>
> +
> #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 <urcu/config.h>
> #include <urcu/compiler.h>
> #include <urcu/system.h>
>
> 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 <stdlib.h>
> #include <pthread.h>
>
> +#include <urcu/config.h>
> +
> /*
> * 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 05efd97..c2ac792 100644
> --- a/src/urcu-bp.c
> +++ b/src/urcu-bp.c
> @@ -37,6 +37,7 @@
> #include <stdbool.h>
> #include <sys/mman.h>
>
> +#include <urcu/config.h>
> #include <urcu/arch.h>
> #include <urcu/wfcqueue.h>
> #include <urcu/map/urcu-bp.h>
> 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 <urcu/config.h>
> +
> #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 <stdbool.h>
> #include <poll.h>
>
> +#include <urcu/config.h>
> #include <urcu/arch.h>
> #include <urcu/wfcqueue.h>
> #include <urcu/map/urcu.h>
> --
> 2.29.2
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-17 20:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-17 20:22 [lttng-dev] [PATCH urcu] fix: explicitly include urcu/config.h in files using CONFIG_RCU_ defines Michael Jeanson via lttng-dev
2020-11-17 20:34 ` Mathieu Desnoyers via lttng-dev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).