From: Mathieu Desnoyers Date: Sun, 12 Aug 2012 16:51:14 +0000 (-0400) Subject: rcuja: cleanup X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ff38c745ac5ceb485eed6b9e662a9e25d6d12731;p=urcu.git rcuja: cleanup Signed-off-by: Mathieu Desnoyers --- diff --git a/rcuja/rcuja.c b/rcuja/rcuja.c index c86173b..348789e 100644 --- a/rcuja/rcuja.c +++ b/rcuja/rcuja.c @@ -198,21 +198,21 @@ struct rcu_ja_node_flag; * required for updates. */ -#define DECLARE_LINEAR_NODE(index) \ - struct { \ - uint8_t nr_child; \ - uint8_t child_value[ja_type_## index ##_max_linear_child]; \ - struct rcu_ja_node_flag *child_ptr[ja_type_## index ##_max_linear_child]; \ - } - -#define DECLARE_POOL_NODE(index) \ - struct { \ - struct { \ - uint8_t nr_child; \ - uint8_t child_value[ja_type_## index ##_max_linear_child]; \ - struct rcu_ja_node_flag *child_ptr[ja_type_## index ##_max_linear_child]; \ - } linear[1U << ja_type_## index ##_nr_pool_order]; \ - } +#define DECLARE_LINEAR_NODE(index) \ + struct { \ + uint8_t nr_child; \ + uint8_t child_value[ja_type_## index ##_max_linear_child]; \ + struct rcu_ja_node_flag *child_ptr[ja_type_## index ##_max_linear_child]; \ + } + +#define DECLARE_POOL_NODE(index) \ + struct { \ + struct { \ + uint8_t nr_child; \ + uint8_t child_value[ja_type_## index ##_max_linear_child]; \ + struct rcu_ja_node_flag *child_ptr[ja_type_## index ##_max_linear_child]; \ + } linear[1U << ja_type_## index ##_nr_pool_order]; \ + } struct rcu_ja_node { union {