[rtems-libbsd commit] Conditionally include <bsp/linker-symbols.h>
Sebastian Huber
sebh at rtems.org
Wed Aug 5 13:05:48 UTC 2020
Module: rtems-libbsd
Branch: 6-freebsd-12
Commit: bd7e6eeb31bfc4b36fc514e9d1c3ef2f44729065
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=bd7e6eeb31bfc4b36fc514e9d1c3ef2f44729065
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Aug 5 14:49:11 2020 +0200
Conditionally include <bsp/linker-symbols.h>
Remove superfluous <bsp.h> include.
---
rtemsbsd/rtems/rtems-kernel-bus-dma.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/rtemsbsd/rtems/rtems-kernel-bus-dma.c b/rtemsbsd/rtems/rtems-kernel-bus-dma.c
index bda4f3d..977ba1c 100644
--- a/rtemsbsd/rtems/rtems-kernel-bus-dma.c
+++ b/rtemsbsd/rtems/rtems-kernel-bus-dma.c
@@ -48,8 +48,6 @@
#include <machine/rtems-bsd-kernel-space.h>
#include <machine/rtems-bsd-cache.h>
#include <machine/rtems-bsd-bus-dma.h>
-#include <bsp.h>
-#include <bsp/linker-symbols.h>
#include <rtems/malloc.h>
@@ -61,6 +59,10 @@
#define CLMASK (CLSZ - (uintptr_t) 1)
#endif
+#ifdef __arm__
+#include <bsp/linker-symbols.h>
+#endif
+
/*
* Convenience function for manipulating driver locks from busdma (during
* busdma_swi, for example). Drivers that don't provide their own locks
More information about the vc
mailing list