From: Stan Cox Date: Wed, 2 Jun 2021 17:37:45 +0000 (-0400) Subject: Add hlist macros for use by hlist_add_tail_rcu X-Git-Tag: release-4.6~126 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=4755bc45327b71abd48772b2fcb88eb95c445648;p=systemtap.git Add hlist macros for use by hlist_add_tail_rcu --- diff --git a/runtime/task_finder_vma.c b/runtime/task_finder_vma.c index 7d8e11be9..965bbdae4 100644 --- a/runtime/task_finder_vma.c +++ b/runtime/task_finder_vma.c @@ -23,6 +23,9 @@ static inline bool atomic_try_cmpxchg(atomic_t *v, int *old, int new) #if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) // Added in linux 4.7, backported to rhel 7, not present in rhel 6 +#define hlist_first_rcu(head) (*((struct hlist_node __rcu **)(&(head)->first))) +#define hlist_next_rcu(node) (*((struct hlist_node __rcu **)(&(node)->next))) + static inline void hlist_add_tail_rcu(struct hlist_node *n, struct hlist_head *h) {