[PATCH 16/42] powerpc/shared/startup/probeMemEnd.c: Fix warning

Joel Sherrill joel.sherrill at oarcorp.com
Fri Oct 17 15:23:32 UTC 2014


---
 c/src/lib/libbsp/powerpc/shared/startup/probeMemEnd.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/startup/probeMemEnd.c b/c/src/lib/libbsp/powerpc/shared/startup/probeMemEnd.c
index 20214c1..8485dbf 100644
--- a/c/src/lib/libbsp/powerpc/shared/startup/probeMemEnd.c
+++ b/c/src/lib/libbsp/powerpc/shared/startup/probeMemEnd.c
@@ -1,8 +1,3 @@
-#include <rtems.h>
-#include <libcpu/spr.h>
-#include <libcpu/cpuIdent.h>
-#include <rtems/bspIo.h>
-
 /*
  * Authorship
  * ----------
@@ -48,6 +43,10 @@
  * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
  */
 
+#include <bsp.h>
+#include <libcpu/spr.h>
+#include <libcpu/cpuIdent.h>
+#include <rtems/bspIo.h>
 
 /* Simple memory probing routine
  *
@@ -116,7 +115,7 @@ SPR_RW(HID0)
 /* Shouldn't matter if the caches are enabled or not... */
 
 /* FIXME: This should go into libcpu, really... */
-int
+static int
 CPU_lockUnlockCaches(register int doLock)
 {
 register uint32_t v, x;
-- 
1.9.3




More information about the devel mailing list