Skip to contentSkip to conversation

Fix build errors after making flash_get_info() non-static

PATCH Superseded Wolfgang Denk 1 participant 1 message Feb 18, 2009

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build errors after making flash_get_info() non-static

Fix for these build problems:
error: static declaration of 'flash_get_info' follows non-static declaration

---
 board/emk/common/flash.c |    3 +--
 board/evb64260/flash.c   |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
board/emk/common/flash.c +1 -2
index 330978b..fe611bb 100644
@@ -82,7 +82,6 @@ flash_info_t	flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 static ulong flash_get_size(FPWV *addr, flash_info_t *info);
 static void flash_reset(flash_info_t *info);
 static int write_word_amd(flash_info_t *info, FPWV *dest, FPW data);
-static flash_info_t *flash_get_info(ulong base);
 
 /*-----------------------------------------------------------------------
  * flash_init()
@@ -142,7 +141,7 @@ static void flash_reset(flash_info_t *info)
 /*-----------------------------------------------------------------------
  */
 
-static flash_info_t *flash_get_info(ulong base)
+flash_info_t *flash_get_info(ulong base)
 {
 	int i;
 	flash_info_t * info;
board/evb64260/flash.c +1 -2
index 115e8cd..825bbaf 100644
@@ -54,7 +54,6 @@ flash_info_t	flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 static ulong flash_get_size (int portwidth, vu_long *addr, flash_info_t *info);
 static int write_word (flash_info_t *info, ulong dest, ulong data);
 static void flash_get_offsets (ulong base, flash_info_t *info);
-static flash_info_t *flash_get_info(ulong base);
 
 /*-----------------------------------------------------------------------
  */
@@ -178,7 +177,7 @@ flash_get_offsets (ulong base, flash_info_t *info)
 /*-----------------------------------------------------------------------
  */
 
-static flash_info_t *flash_get_info(ulong base)
+flash_info_t *flash_get_info(ulong base)
 {
 	int i;
 	flash_info_t * info;
Signature · 1 line
1.6.0.6