* [PATCH] pinctrl: abx500: fix build warning
@ 2013-06-11 8:48 patrice.chotard.st
2013-06-11 8:55 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: patrice.chotard.st @ 2013-06-11 8:48 UTC (permalink / raw)
To: linux-kernel, Linus Walleij
Cc: Olivier Clergeaud, Lee Jones, Fabio Baltieri, Patrice Chotard
From: Patrice Chotard <patrice.chotard@st.com>
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 <patrice.chotard@st.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pinctrl: abx500: fix build warning
2013-06-11 8:48 [PATCH] pinctrl: abx500: fix build warning patrice.chotard.st
@ 2013-06-11 8:55 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2013-06-11 8:55 UTC (permalink / raw)
To: Patrice Chotard
Cc: linux-kernel, Olivier Clergeaud, Lee Jones, Fabio Baltieri,
Patrice Chotard
On Tue, Jun 11, 2013 at 10:48 AM, <patrice.chotard.st@gmail.com> wrote:
> From: Patrice Chotard <patrice.chotard@st.com>
>
> 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 <patrice.chotard@st.com>
Patch applied, thanks!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-11 8:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-11 8:48 [PATCH] pinctrl: abx500: fix build warning patrice.chotard.st
2013-06-11 8:55 ` Linus Walleij
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.