Skip to content

Commit

Permalink
util: Add Free BSD Red-Black tree macros
Browse files Browse the repository at this point in the history
Copy Free BSD's sys/sys/tree.h to SPDK's include/spdk/tree.h by
changing as little as possible.

A few changes are as follows:
- Remove a few lines located at the head of the file.
- Change the name of ifdef from _SYS_TREE_H_ to SPDK_TREE_H.
- Change the type __uintptr_t to uintptr_t.
- Change the attribute __unused to __attribute__((unused))
- Insert a space to the front and the end of CONSTCOND.

Signed-off-by: Shuhei Matsumoto <[email protected]>
Change-Id: I26488d8fd61f80508cf7d96fbeb6007f12080a01
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7721
Tested-by: SPDK CI Jenkins <[email protected]>
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <[email protected]>
Reviewed-by: Ben Walker <[email protected]>
Reviewed-by: Jim Harris <[email protected]>
Reviewed-by: Monica Kenguva <[email protected]>
Reviewed-by: Konrad Sztyber <[email protected]>
  • Loading branch information
Shuhei Matsumoto authored and tomzawadzki committed May 14, 2021
1 parent 4748ebe commit fb68d4e
Showing 1 changed file with 829 additions and 0 deletions.
Loading

0 comments on commit fb68d4e

Please sign in to comment.