Don't make those rb-tree symbols global.
authorngkaho1234 <ngkaho1234@gmail.com>
Sun, 4 Oct 2015 14:16:12 +0000 (22:16 +0800)
committerngkaho1234 <ngkaho1234@gmail.com>
Sun, 4 Oct 2015 14:16:12 +0000 (22:16 +0800)
lwext4/ext4_xattr.c

index 521866b1f54e53d30b4dbb3926514e634420867b..04830bc1c3ea23f7759d905044dff2668384bf65 100644 (file)
@@ -28,10 +28,11 @@ static int ext4_xattr_item_cmp(struct ext4_xattr_item *a,
        return memcmp(a->name, b->name, a->name_len);
 }
 
-RB_GENERATE (ext4_xattr_tree,
-            ext4_xattr_item,
-            node,
-            ext4_xattr_item_cmp)
+RB_GENERATE_INTERNAL(ext4_xattr_tree,
+                    ext4_xattr_item,
+                    node,
+                    ext4_xattr_item_cmp,
+                    static inline)
 
 static struct ext4_xattr_item *
 ext4_xattr_item_alloc(uint8_t name_index,