Re: [PATCH] rtc: pcf8563: fix uninitialized use warning

2014-09-08 Thread Sergei Shtylyov
On 9/8/2014 7:22 PM, Arnd Bergmann wrote: diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c index 5a197d9dc7e7..3a6f994c4da8 100644 --- a/drivers/rtc/rtc-pcf8563.c +++ b/drivers/rtc/rtc-pcf8563.c @@ -167,7 +167,7 @@ static irqreturn_t pcf8563_irq(int irq, void *dev_id) ch

Re: [PATCH] rtc: pcf8563: fix uninitialized use warning

2014-09-08 Thread Arnd Bergmann
On Monday 08 September 2014 15:02:00 Sergei Shtylyov wrote: > > diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c > > index 5a197d9dc7e7..3a6f994c4da8 100644 > > --- a/drivers/rtc/rtc-pcf8563.c > > +++ b/drivers/rtc/rtc-pcf8563.c > > @@ -167,7 +167,7 @@ static irqreturn_t pcf8563_i

Re: [PATCH] rtc: pcf8563: fix uninitialized use warning

2014-09-08 Thread Sergei Shtylyov
Hello. On 9/8/2014 12:42 AM, Arnd Bergmann wrote: gcc-4.9 found a potential condition under which the 'pending' variable may be used uninitialized: drivers/rtc/rtc-pcf8563.c: In function 'pcf8563_irq': drivers/rtc/rtc-pcf8563.c:173:5: warning: 'pending' may be used uninitialized in this fun

[PATCH] rtc: pcf8563: fix uninitialized use warning

2014-09-07 Thread Arnd Bergmann
gcc-4.9 found a potential condition under which the 'pending' variable may be used uninitialized: drivers/rtc/rtc-pcf8563.c: In function 'pcf8563_irq': drivers/rtc/rtc-pcf8563.c:173:5: warning: 'pending' may be used uninitialized in this function [-Wmaybe-uninitialized] This is because in the pc