[rtems-libbsd commit] Conditionally include <bsp/linker-symbols.h>
Sebastian Huber
sebh at rtems.org
Wed Aug 5 13:06:09 UTC 2020
Module: rtems-libbsd
Branch: master
Commit: 3e4ebf3bf3a17328ec18af217d441aab1b9baf5a
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=3e4ebf3bf3a17328ec18af217d441aab1b9baf5a
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