And stop redefining macros.
Test:
Inside qemu on x86_64 build works without issues.
---
 kern/rbtree.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kern/rbtree.c b/kern/rbtree.c
index 0f5eb9a..ee406b1 100644
--- a/kern/rbtree.c
+++ b/kern/rbtree.c
@@ -24,12 +24,11 @@
  */
 
 #include <kern/assert.h>
+#include <kern/macros.h>
 #include <kern/rbtree.h>
 #include <kern/rbtree_i.h>
 #include <sys/types.h>
 
-#define unlikely(expr) __builtin_expect(!!(expr), 0)
-
 /*
  * Return the index of a node in the children array of its parent.
  *
-- 
2.53.0


Reply via email to