2013-06-11 08:49:06

by Patrice Chotard

[permalink] [raw]
Subject: [PATCH] pinctrl: abx500: fix build warning

From: Patrice Chotard <[email protected]>

pinctrl-abx500.c: In function 'abx500_gpio_dbg_show_one':
pinctrl-abx500.c:534:14: warning: 'pud' may be used
uninitialized in this function [-Wuninitialized]

Signed-off-by: Patrice Chotard <[email protected]>
---
drivers/pinctrl/pinctrl-abx500.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-abx500.c b/drivers/pinctrl/pinctrl-abx500.c
index a6992c3..dad03be 100644
--- a/drivers/pinctrl/pinctrl-abx500.c
+++ b/drivers/pinctrl/pinctrl-abx500.c
@@ -506,7 +506,7 @@ static void abx500_gpio_dbg_show_one(struct seq_file *s,
int mode = -1;
bool is_out;
bool pd;
- enum abx500_gpio_pull_updown pud;
+ enum abx500_gpio_pull_updown pud = 0;

const char *modes[] = {
[ABX500_DEFAULT] = "default",
--
1.7.10


2013-06-11 08:55:47

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH] pinctrl: abx500: fix build warning

On Tue, Jun 11, 2013 at 10:48 AM, <[email protected]> wrote:

> From: Patrice Chotard <[email protected]>
>
> pinctrl-abx500.c: In function 'abx500_gpio_dbg_show_one':
> pinctrl-abx500.c:534:14: warning: 'pud' may be used
> uninitialized in this function [-Wuninitialized]
>
> Signed-off-by: Patrice Chotard <[email protected]>

Patch applied, thanks!

Yours,
Linus Walleij