u-boot-2016/arch
Simon Glass 747c4c68c0 stm32: Correct positioning of declaration
The current code gives a warning:

arch/arm/mach-stm32/stm32f7/soc.c: In function 'arch_cpu_init':
arch/arm/mach-stm32/stm32f7/soc.c:38:2: error: 'for' loop initial
    declarations are only allowed in C99 or C11 mode
  for (int i = 0; i < ARRAY_SIZE(stm32_region_config); i++)
  ^
arch/arm/mach-stm32/stm32f7/soc.c:38:2: note: use option -std=c99,
    -std=gnu99, -std=c11 or -std=gnu11 to compile your code

Fix it by moving the declaration to the top of the function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Series-cc trini
2017-07-06 16:17:17 -04:00
..
arc arc: Add support for HS Development Kit board 2017-06-29 19:34:10 +03:00
arm stm32: Correct positioning of declaration 2017-07-06 16:17:17 -04:00
avr32 Remove various unused interrupt related code 2017-04-06 20:42:18 -04:00
m68k spi: Zap cf_qspi driver and related code 2017-01-15 18:29:04 +01:00
microblaze microblaze: Build only DTBs for selected target 2017-06-19 15:52:39 +02:00
mips mips: Make u-boot-mips.h a private header 2017-06-05 11:02:33 -04:00
nds32 nds32: Remove include files from common.h 2017-06-05 11:02:36 -04:00
nios2 fdt: Move fdt_fixup_ethernet to a common place 2017-05-01 09:11:59 -04:00
powerpc powerpc: remove 4xx support 2017-07-03 17:35:28 -04:00
sandbox sandbox: Fix comparison of unsigned enum expression warning 2017-06-08 20:21:59 -06:00
sh sh: generate position independent code for all platforms 2016-12-02 21:32:54 -05:00
x86 Revert "x86: Convert MMC to driver model" 2017-06-27 16:31:30 +08:00
xtensa board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
.gitignore
Kconfig Revert "x86: Convert MMC to driver model" 2017-06-27 16:31:30 +08:00