From e62135578c2715e2d8242b4d6d6cf5595aacb732 Mon Sep 17 00:00:00 2001 From: John Marino Date: Sun, 8 Nov 2015 00:42:43 +0100 Subject: [PATCH] tree.h: Restore ability to generate static functions These two functions were hardcodes as "static" before the previous commit which removed the qualifier. Instead, "static" should have been changed to the the STORQUAL macro argument. Doing so now fixes static RB function generation. --- sys/sys/tree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/tree.h b/sys/sys/tree.h index 695a065d75..cf5d66acd4 100644 --- a/sys/sys/tree.h +++ b/sys/sys/tree.h @@ -455,7 +455,7 @@ struct type *name##_RB_LOOKUP_##ext (struct name *, datatype) \ _RB_GENERATE(name, type, field, cmp, __unused static) #define _RB_GENERATE(name, type, field, cmp, STORQUAL) \ -void \ +STORQUAL void \ name##_RB_INSERT_COLOR(struct name *head, struct type *elm) \ { \ struct type *parent, *gparent, *tmp; \ @@ -499,7 +499,7 @@ name##_RB_INSERT_COLOR(struct name *head, struct type *elm) \ RB_COLOR(head->rbh_root, field) = RB_BLACK; \ } \ \ -void \ +STORQUAL void \ name##_RB_REMOVE_COLOR(struct name *head, struct type *parent, \ struct type *elm) \ { \ -- 2.41.0