Skip to contentSkip to conversation

ARM: EXYNOS: fixed compiler warning message

PATCH New Jaehoon Chung 3 participants 3 messages Jul 10, 2012 – Jul 19, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: EXYNOS: fixed compiler warning message

Removed [-Wuninitialized] warning message. The fout_sel is assigned to "-1" by default. And start, gpio_func is initialized to 0.

---
 arch/arm/cpu/armv7/exynos/clock.c  |    3 +++
 arch/arm/cpu/armv7/exynos/pinmux.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
arch/arm/cpu/armv7/exynos/clock.c +3 -0
index fc0ed5e..672598f 100644
@@ -173,6 +173,9 @@ static unsigned long exynos5_get_pll_clk(int pllreg)
 			fout_sel = (pll_div2_sel >> BPLL_FOUT_SEL_SHIFT)
 					& BPLL_FOUT_SEL_MASK;
 			break;
+		default:
+			fout_sel = -1;
+			break;
 		}
 
 		if (fout_sel == 0)
arch/arm/cpu/armv7/exynos/pinmux.c +1 -1
index 822410e..0e91a6c 100644
@@ -66,7 +66,7 @@ static int exynos5_mmc_config(int peripheral, int flags)
 	struct exynos5_gpio_part1 *gpio1 =
 		(struct exynos5_gpio_part1 *) samsung_get_base_gpio_part1();
 	struct s5p_gpio_bank *bank, *bank_ext;
-	int i, start, gpio_func;
+	int i, start = 0, gpio_func = 0;
 
 	switch (peripheral) {
 	case PERIPH_ID_SDMMC0:
#1 lore raw

PATCH 1/1 ARM: EXYNOS: fixed compiler warning message

Hi Jaehoon Chung,

Thanks and Regards,
Rajeshwari Shinde.

Quoted 42 lines · Jaehoon Chung

Removed [-Wuninitialized] warning message. The fout_sel is assigned to "-1" by default. And start, gpio_func is initialized to 0.

---
 arch/arm/cpu/armv7/exynos/clock.c  |    3 +++
 arch/arm/cpu/armv7/exynos/pinmux.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
arch/arm/cpu/armv7/exynos/clock.c +3 -0
index fc0ed5e..672598f 100644
@@ -173,6 +173,9 @@ static unsigned long exynos5_get_pll_clk(int pllreg)
                        fout_sel = (pll_div2_sel >> BPLL_FOUT_SEL_SHIFT)
                                        & BPLL_FOUT_SEL_MASK;
                        break;
+               default:
+                       fout_sel = -1;
+                       break;
                }
 
                if (fout_sel == 0)
arch/arm/cpu/armv7/exynos/pinmux.c +1 -1
index 822410e..0e91a6c 100644
@@ -66,7 +66,7 @@ static int exynos5_mmc_config(int peripheral, int flags)
        struct exynos5_gpio_part1 *gpio1 =
                (struct exynos5_gpio_part1 *) samsung_get_base_gpio_part1();
        struct s5p_gpio_bank *bank, *bank_ext;
-       int i, start, gpio_func;
+       int i, start = 0, gpio_func = 0;
 
        switch (peripheral) {
        case PERIPH_ID_SDMMC0:

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#2 lore raw

PATCH 1/1 ARM: EXYNOS: fixed compiler warning message

Quoted 18 lines · Rajeshwari Birje

Hi Jaehoon Chung,

Thanks and Regards,
Rajeshwari Shinde.

Quoted 10 lines · Jaehoon Chung

Removed [-Wuninitialized] warning message. The fout_sel is assigned to "-1" by default. And start, gpio_func is initialized to 0.

---
 arch/arm/cpu/armv7/exynos/clock.c  |    3 +++
 arch/arm/cpu/armv7/exynos/pinmux.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

applied to u-boot-samsung.

Thanks.
Minkyu Kang.

Signature · 2 lines
from. prom.
www.promsoft.net