Skip to contentSkip to conversation

scb9328: Fix flash warning: type qualifiers ignored on function return type

PATCH New Jean-Christophe PLAGNIOL-VILLARD 2 participants 2 messages Mar 9, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scb9328: Fix flash warning: type qualifiers ignored on function return type

board/scb9328/flash.c +4 -1
index 1b56f8c..304190c 100644
@@ -44,6 +44,7 @@
 
 #if ( SCB9328_FLASH_BUS_WIDTH == 1 )
 #  define FLASH_BUS vu_char
+#  define FLASH_BUS_RET u_char
 #  if ( SCB9328_FLASH_INTERLEAVE == 1 )
 #    define FLASH_CMD( x ) x
 #  else
@@ -53,6 +54,7 @@
 
 #elif ( SCB9328_FLASH_BUS_WIDTH == 2 )
 #  define FLASH_BUS vu_short
+#  define FLASH_BUS_RET u_short
 #  if ( SCB9328_FLASH_INTERLEAVE == 1 )
 #    define FLASH_CMD( x ) x
 #  elif ( SCB9328_FLASH_INTERLEAVE == 2 )
@@ -64,6 +66,7 @@
 
 #elif ( SCB9328_FLASH_BUS_WIDTH == 4 )
 #  define FLASH_BUS vu_long
+#  define FLASH_BUS_RET u_long
 #  if ( SCB9328_FLASH_INTERLEAVE == 1 )
 #    define FLASH_CMD( x ) x
 #  elif ( SCB9328_FLASH_INTERLEAVE == 2 )
@@ -81,7 +84,7 @@
 
 flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
 
-static FLASH_BUS flash_status_reg (void)
+static FLASH_BUS_RET flash_status_reg (void)
 {
 
 	FLASH_BUS *addr = (FLASH_BUS *) 0;
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 scb9328: Fix flash warning: type qualifiers ignored on function return type

board/scb9328/flash.c

Quoted 3 lines · In message <[email protected]> you wrote:
board/scb9328/flash.c +0 -0

Applied, thanks.

Konstantin, we fixed this for now, but I think you really should dump this old driver and use the standard CFI driver instead.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The following statement is not true.  The previous statement is true.