summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-13 10:30:09 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-13 10:30:09 -0500
commitd7760ac8d3be4c7aca84f93f3a9346dce13bfa15 (patch)
treee6d3f7d74c8432bf51d5cab9cfefc9e67bbc1adb
parentfb252a684bfd723041f98ff1201e8b1c033af278 (diff)
downloadrtems-d7760ac8d3be4c7aca84f93f3a9346dce13bfa15.tar.bz2
libbsp/shared/vmeUniverse: Fix warnings
-rw-r--r--c/src/lib/libbsp/shared/vmeUniverse/VMEDMA.h5
-rw-r--r--c/src/lib/libbsp/shared/vmeUniverse/bspVmeDmaList.c5
-rw-r--r--c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c2
3 files changed, 9 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/shared/vmeUniverse/VMEDMA.h b/c/src/lib/libbsp/shared/vmeUniverse/VMEDMA.h
index 6b53b127d6..636f6d365c 100644
--- a/c/src/lib/libbsp/shared/vmeUniverse/VMEDMA.h
+++ b/c/src/lib/libbsp/shared/vmeUniverse/VMEDMA.h
@@ -297,6 +297,11 @@ BSP_VMEDmaListRefresh(BSP_VMEDmaListDescriptor anchor);
int
BSP_VMEDmaListStart(int channel, BSP_VMEDmaListDescriptor list);
+#ifdef DEBUG
+void
+BSP_VMEDmaListDump(BSP_VMEDmaListDescriptor p);
+#endif
+
#ifdef __cplusplus
}
#endif
diff --git a/c/src/lib/libbsp/shared/vmeUniverse/bspVmeDmaList.c b/c/src/lib/libbsp/shared/vmeUniverse/bspVmeDmaList.c
index 6234399e55..73b398dda1 100644
--- a/c/src/lib/libbsp/shared/vmeUniverse/bspVmeDmaList.c
+++ b/c/src/lib/libbsp/shared/vmeUniverse/bspVmeDmaList.c
@@ -52,10 +52,11 @@
#include <stdio.h>
#include <string.h>
+#define DEBUG
+#include <bsp/VMEDMA.h>
#include <bsp/bspVmeDmaList.h>
#include "bspVmeDmaListP.h"
-#define DEBUG
typedef struct VMEDmaListNodeRec_ {
VMEDmaListNode p, n; /* linkage */
@@ -283,7 +284,7 @@ VMEDmaListNode d = p;
}
BSP_VMEDmaListDescriptor
-BSP_VMEDmaDescriptorPrev(BSP_VMEDmaListDescriptor p)
+BSP_VMEDmaListDescriptorPrev(BSP_VMEDmaListDescriptor p)
{
VMEDmaListNode d = p;
return d->p;
diff --git a/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c b/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
index a80f534663..8236ee237c 100644
--- a/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
+++ b/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c
@@ -312,7 +312,7 @@ va_list ap;
va_end(ap);
}
-int
+static int
vmeUniverseFindPciBase(
int instance,
volatile LERegister **pbase