diff options
author | Tom Jones <thj@freebsd.org> | 2024-09-11 15:42:32 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2024-09-25 13:33:52 +0000 |
commit | 33fec83487b3f88203b0a854f7aec89d6e405cd7 (patch) | |
tree | 07fbb97bf2a1854db61c349906a607728be20cc4 | |
parent | e07c5fe467eac3c236adae4dc080c40302a0a8e5 (diff) |
vppinfra: exclude clib_dt_node_add_child on FreeBSD
clib_dt_read_from_sysfs is the only user of clib_dt_node_add_child, on
FreeBSD this causes a build failure due to an unused function. Place
clib_dt_node_add_child behind an include guard for linux only.
Type: fix
Change-Id: I9641ffd10d9d15e1e552f570cd386211d3b4ab39
Signed-off-by: Tom Jones <thj@freebsd.org>
-rw-r--r-- | src/vppinfra/devicetree.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vppinfra/devicetree.c b/src/vppinfra/devicetree.c index 9bf8eeeac6c..b725d5a0aed 100644 --- a/src/vppinfra/devicetree.c +++ b/src/vppinfra/devicetree.c @@ -11,8 +11,6 @@ #include <fcntl.h> #include <dirent.h> -#endif - static_always_inline clib_dt_node_t * clib_dt_node_add_child (clib_dt_main_t *dm, clib_dt_node_t *n, char *name) { @@ -42,6 +40,7 @@ clib_dt_node_add_child (clib_dt_main_t *dm, clib_dt_node_t *n, char *name) return cn; } +#endif void clib_dt_main_free (clib_dt_main_t *dm) |