From: Wolfgang Denk Date: Mon, 07 Nov 2011 22:14:31 +0100 Subject: [U-Boot] [PATCH 35/56] board/etx094/flash.c: Fix flash initialization In-Reply-To: <1320458160-23136-36-git-send-email-wd@denx.de> References: <1320458160-23136-1-git-send-email-wd@denx.de> <1320458160-23136-36-git-send-email-wd@denx.de> Message-ID: <20111107211431.00CD2189301B@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wolfgang Denk, In message <1320458160-23136-36-git-send-email-wd@denx.de> you wrote: > The ETX094 has only one NOR flash bank. Remove all code trying to > deal with a second bank. This also fixes a number of GCC 4.6 build > warnings: > flash.c: In function 'flash_init': > flash.c:68:13: warning: array subscript is above array bounds > [-Warray-bounds] > flash.c:70:13: warning: array subscript is above array bounds > [-Warray-bounds] > flash.c:72:13: warning: array subscript is above array bounds > [-Warray-bounds] > flash.c:128:13: warning: array subscript is above array bounds > [-Warray-bounds] > flash.c:129:13: warning: array subscript is above array bounds > [-Warray-bounds] > flash.c:133:12: warning: array subscript is above array bounds > [-Warray-bounds] > > Signed-off-by: Wolfgang Denk > --- > board/etx094/flash.c | 54 ++----------------------------------------------- > 1 files changed, 3 insertions(+), 51 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- 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 Quote from the Boss after overriding the decision of a task force he created to find a solution: "I'm sorry if I ever gave you the impression your input would have any effect on my decision for the outcome of this project!"