From: Mathieu Desnoyers Date: Fri, 30 Nov 2018 21:59:18 +0000 (-0500) Subject: rculfqueue.h: do not include urcu-call-rcu.h X-Git-Tag: v0.11.0~26 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d95d5cb976021089e91923c15f3a61a4852cb62c;p=urcu.git rculfqueue.h: do not include urcu-call-rcu.h urcu-call-rcu.h is included by rculfhqueue.h only for struct rcu_head forward declaration, but as a result the urcu flavor needs to be chosen beforehand, and therefore prevents using rculfqueue.h with multiple urcu flavors in a given compile unit. Remove that include and do a forward declaration of struct rcu_head instead. Signed-off-by: Mathieu Desnoyers --- diff --git a/include/urcu/rculfqueue.h b/include/urcu/rculfqueue.h index 598fa50..7e80789 100644 --- a/include/urcu/rculfqueue.h +++ b/include/urcu/rculfqueue.h @@ -24,13 +24,13 @@ */ #include -#include #ifdef __cplusplus extern "C" { #endif struct cds_lfq_queue_rcu; +struct rcu_head; struct cds_lfq_node_rcu { struct cds_lfq_node_rcu *next;