summaryrefslogtreecommitdiff
path: root/kern/hlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/hlist.h')
-rw-r--r--kern/hlist.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/kern/hlist.h b/kern/hlist.h
index 83d64fee..84458881 100644
--- a/kern/hlist.h
+++ b/kern/hlist.h
@@ -18,8 +18,8 @@
* Doubly-linked list specialized for forward traversals and O(1) removals.
*/
-#ifndef _KERN_HLIST_H
-#define _KERN_HLIST_H
+#ifndef KERN_HLIST_H
+#define KERN_HLIST_H
#include <stdbool.h>
#include <stddef.h>
@@ -197,10 +197,10 @@ hlist_remove(struct hlist_node *node)
*/
#define hlist_first_entry(list, type, member) \
MACRO_BEGIN \
- struct hlist_node *___first; \
+ struct hlist_node *first___; \
\
- ___first = (list)->first; \
- hlist_end(___first) ? NULL : hlist_entry(___first, type, member); \
+ first___ = (list)->first; \
+ hlist_end(first___) ? NULL : hlist_entry(first___, type, member); \
MACRO_END
/*
@@ -208,12 +208,12 @@ MACRO_END
*/
#define hlist_next_entry(entry, member) \
MACRO_BEGIN \
- struct hlist_node *___next; \
+ struct hlist_node *next___; \
\
- ___next = (entry)->member.next; \
- hlist_end(___next) \
+ next___ = (entry)->member.next; \
+ hlist_end(next___) \
? NULL \
- : hlist_entry(___next, typeof(*entry), member); \
+ : hlist_entry(next___, typeof(*entry), member); \
MACRO_END
/*
@@ -352,10 +352,10 @@ hlist_rcu_remove(struct hlist_node *node)
*/
#define hlist_rcu_first_entry(list, type, member) \
MACRO_BEGIN \
- struct hlist_node *___first; \
+ struct hlist_node *first___; \
\
- ___first = hlist_rcu_first(list); \
- hlist_end(___first) ? NULL : hlist_entry(___first, type, member); \
+ first___ = hlist_rcu_first(list); \
+ hlist_end(first___) ? NULL : hlist_entry(first___, type, member); \
MACRO_END
/*
@@ -363,12 +363,12 @@ MACRO_END
*/
#define hlist_rcu_next_entry(entry, member) \
MACRO_BEGIN \
- struct hlist_node *___next; \
+ struct hlist_node *next___; \
\
- ___next = hlist_rcu_next(&entry->member); \
- hlist_end(___next) \
+ next___ = hlist_rcu_next(&entry->member); \
+ hlist_end(next___) \
? NULL \
- : hlist_entry(___next, typeof(*entry), member); \
+ : hlist_entry(next___, typeof(*entry), member); \
MACRO_END
/*
@@ -387,4 +387,4 @@ for (entry = hlist_rcu_first_entry(list, typeof(*entry), member); \
entry != NULL; \
entry = hlist_rcu_next_entry(entry, member))
-#endif /* _KERN_HLIST_H */
+#endif /* KERN_HLIST_H */