diff options
Diffstat (limited to 'include/os/freebsd/spl/sys/ccompat.h')
-rw-r--r-- | include/os/freebsd/spl/sys/ccompat.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/os/freebsd/spl/sys/ccompat.h b/include/os/freebsd/spl/sys/ccompat.h index 59abe921d..eaee9159e 100644 --- a/include/os/freebsd/spl/sys/ccompat.h +++ b/include/os/freebsd/spl/sys/ccompat.h @@ -82,18 +82,17 @@ typedef struct { volatile int counter; } atomic_t; - /* BEGIN CSTYLED */ #define hlist_for_each(p, head) \ for (p = (head)->first; p; p = (p)->next) #define hlist_entry(ptr, type, field) container_of(ptr, type, field) #define container_of(ptr, type, member) \ +/* CSTYLED */ \ ({ \ - const __typeof(((type *)0)->member) *__p = (ptr); \ - (type *)((uintptr_t)__p - offsetof(type, member)); \ + const __typeof(((type *)0)->member) *__p = (ptr); \ + (type *)((uintptr_t)__p - offsetof(type, member)); \ }) - /* END CSTYLED */ static inline void hlist_add_head(struct hlist_node *n, struct hlist_head *h) |