[PATCH 51/62] arm/rtl22xx/startup/bspstart.c: Ensure bsp_start_default() is static

Joel Sherrill joel.sherrill at oarcorp.com
Wed Oct 15 20:00:41 UTC 2014


---
 c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c b/c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c
index cb764c4..c10308c 100644
--- a/c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c
+++ b/c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c
@@ -1,6 +1,8 @@
 /*
  *  LPC22XX/LPC21xx Startup code
- *
+ */
+
+/*
  *  Copyright (c) 2007 by Ray Xu <rayx.cn at gmail.com>
  *
  *  The license and distribution terms for this file may be
@@ -23,7 +25,7 @@
  * RESTRICTIONS/LIMITATIONS:
  *   Since RTEMS is not configured, no RTEMS functions can be called.
  */
-void bsp_start_default( void )
+static void bsp_start_default( void )
 {
   PINSEL2 =0x0f814914;
   BCFG0 = 0x1000ffef;
@@ -85,5 +87,4 @@ void bsp_start_default( void )
  *  By making this a weak alias for bsp_start_default, a brave soul
  *  can override the actual bsp_start routine used.
  */
-
 void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));
-- 
1.9.3




More information about the devel mailing list