[PATCH rtems-libbsd] if_xae: Fix non-FDT BSP build error
Alex White
alex.white at oarcorp.com
Wed Mar 9 18:47:43 UTC 2022
This fixes a compiler error that would occur for every BSP that does not
define `BSP_FDT_IS_SUPPORTED`. The fdt headers should always be included
to provide the needed definitions.
---
freebsd/sys/dev/xilinx/axidma.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/freebsd/sys/dev/xilinx/axidma.c b/freebsd/sys/dev/xilinx/axidma.c
index 20cd7f23..77025c0a 100644
--- a/freebsd/sys/dev/xilinx/axidma.c
+++ b/freebsd/sys/dev/xilinx/axidma.c
@@ -52,11 +52,17 @@ __FBSDID("$FreeBSD$");
#include <vm/vm_extern.h>
#include <vm/vm_page.h>
+#ifndef __rtems__
#ifdef FDT
#include <dev/fdt/fdt_common.h>
#include <dev/ofw/ofw_bus.h>
#include <dev/ofw/ofw_bus_subr.h>
#endif
+#else
+#include <dev/fdt/fdt_common.h>
+#include <dev/ofw/ofw_bus.h>
+#include <dev/ofw/ofw_bus_subr.h>
+#endif /* __rtems__ */
#include <dev/xdma/xdma.h>
#include <dev/xilinx/axidma.h>
--
2.32.0
More information about the devel
mailing list