[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150514215047.GE3338@piout.net>
Date: Thu, 14 May 2015 23:50:47 +0200
From: Alexandre Belloni <alexandre.belloni@...e-electrons.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Arnd Bergmann <arnd@...db.de>,
Alessandro Zummo <a.zummo@...ertech.it>,
rtc-linux@...glegroups.com, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rtc: pfc8563: fix uninitialized variable warning
Hi Andrew,
On 12/05/2015 at 23:27:02 +0200, Arnd Bergmann wrote :
> Gcc is unable to prove that alm_pending is always initialized
> when it is used, so it prints a harmless warning:
>
> drivers/rtc/rtc-pcf8563.c: In function 'pcf8563_probe':
> drivers/rtc/rtc-pcf8563.c:449:5: warning: 'alm_pending' may be used uninitialized in this function [-Wmaybe-uninitialized]
>
> This uses the same conditional expression that is used inside of
> the pcf8563_get_alarm_mode() function, to help gcc figure it out
> and shut up that warning, and make the ARM defconfigs build again
> with no warnings.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> Fixes: a45d528aab8b ("rtc: pcf8563: clear expired alarm at boot time")
>
Can you send that fix to Linus for the next 4.1 rc?
You can add my
Acked-by: Alexandre Belloni <alexandre.belloni@...e-electrons.com>
I hope that will be the last one :)
Thanks!
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists