[rtems-libbsd commit] if_xae: Fix non-FDT BSP build error
Sebastian Huber
sebh at rtems.org
Thu Mar 10 07:13:10 UTC 2022
Module: rtems-libbsd
Branch: 6-freebsd-12
Commit: 22e531d7f0f6b9f5834438e15b11a748aa194a8a
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=22e531d7f0f6b9f5834438e15b11a748aa194a8a
Author: Alex White <alex.white at oarcorp.com>
Date: Wed Mar 9 12:47:43 2022 -0600
if_xae: Fix non-FDT BSP build error
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 20cd7f2..77025c0 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>
More information about the vc
mailing list