u-boot-brain/arch
Marek Vasut 47c9c76b8a arm: exynos: Squash bogus warnings in pinmux
Squash these warnings in pinmux.c found with GCC 4.8:

/arch/arm/cpu/armv7/exynos/pinmux.c: In function 'exynos_pinmux_config':
/arch/arm/cpu/armv7/exynos/pinmux.c:687:28: warning: 'count' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for (i = start; i < start + count; i++) {
                            ^
/arch/arm/cpu/armv7/exynos/pinmux.c:663:16: note: 'count' was declared here
  int i, start, count;
                ^
/arch/arm/cpu/armv7/exynos/pinmux.c:687:28: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for (i = start; i < start + count; i++) {
                            ^
/arch/arm/cpu/armv7/exynos/pinmux.c:663:9: note: 'start' was declared here
  int i, start, count;
         ^
/arch/arm/cpu/armv7/exynos/pinmux.c:689:19: warning: 'bank' may be used uninitialized in this function [-Wmaybe-uninitialized]
   s5p_gpio_cfg_pin(bank, i, GPIO_FUNC(0x2));
                   ^
/arch/arm/cpu/armv7/exynos/pinmux.c:662:24: note: 'bank' was declared here
  struct s5p_gpio_bank *bank;
                        ^
/arch/arm/cpu/armv7/exynos/pinmux.c: In function 'exynos_pinmux_config':
/arch/arm/cpu/armv7/exynos/pinmux.c:687:28: warning: 'count' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for (i = start; i < start + count; i++) {
                            ^
/arch/arm/cpu/armv7/exynos/pinmux.c:663:16: note: 'count' was declared here
  int i, start, count;
                ^
/arch/arm/cpu/armv7/exynos/pinmux.c:687:28: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for (i = start; i < start + count; i++) {
                            ^
/arch/arm/cpu/armv7/exynos/pinmux.c:663:9: note: 'start' was declared here
  int i, start, count;
         ^
/arch/arm/cpu/armv7/exynos/pinmux.c:689:19: warning: 'bank' may be used uninitialized in this function [-Wmaybe-uninitialized]
   s5p_gpio_cfg_pin(bank, i, GPIO_FUNC(0x2));
                   ^
/arch/arm/cpu/armv7/exynos/pinmux.c:662:24: note: 'bank' was declared here
  struct s5p_gpio_bank *bank;
                        ^

Note that the warning is bogus, the function can never be called with invalid
'peripheral' argument. GCC just cannot analyze this.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Cc: Akshay Saraswat <akshay.s@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@ti.com>
Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Rajeshwari S Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
2014-03-13 09:46:57 +09:00
..
arc kbuild: fix CROSS_COMPILE settings in config.mk 2014-03-04 12:15:30 -05:00
arm arm: exynos: Squash bogus warnings in pinmux 2014-03-13 09:46:57 +09:00
avr32 kbuild: fix CROSS_COMPILE settings in config.mk 2014-03-04 12:15:30 -05:00
blackfin kbuild: improve Kbuild speed 2014-03-07 10:59:06 -05:00
m68k kbuild: fix CROSS_COMPILE settings in config.mk 2014-03-04 12:15:30 -05:00
microblaze kbuild: fix CROSS_COMPILE settings in config.mk 2014-03-04 12:15:30 -05:00
mips usb: create common header virtual root hub descriptors 2014-03-10 18:53:36 +01:00
nds32 config.mk: specify the exact path to standalone linker script 2014-03-07 10:59:06 -05:00
nios2 kbuild: fix CROSS_COMPILE settings in config.mk 2014-03-04 12:15:30 -05:00
openrisc kbuild: fix CROSS_COMPILE settings in config.mk 2014-03-04 12:15:30 -05:00
powerpc usb: create common header virtual root hub descriptors 2014-03-10 18:53:36 +01:00
sandbox unit-test: make "test -e" test independent of $CWD 2014-03-07 10:59:06 -05:00
sh kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBGCC 2014-03-07 10:59:06 -05:00
sparc usb: create common header virtual root hub descriptors 2014-03-10 18:53:36 +01:00
x86 kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBGCC 2014-03-07 10:59:06 -05:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00