cleanup: include/: move misc/rb.h to sys/rb.h

move misc/rb.h to sys/rb.h and
create a shim for backward-compatibility.

No functional changes to the headers.
A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES.

Related to #16539

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-06-26 10:33:50 -04:00
commit 1859244b64
9 changed files with 225 additions and 210 deletions

View file

@ -6,7 +6,7 @@
#include <zephyr.h>
#include <tc_util.h>
#include <ztest.h>
#include <misc/rb.h>
#include <sys/rb.h>
#define CHECK(n) \
zassert_true(!!(n), "Tree check failed: [ " #n " ] @%d", __LINE__)