linux-next: build warning after merge of the gpio tree

2 messages, 2 authors, 2016-06-16 · open the first message on its own page

linux-next: build warning after merge of the gpio tree

From: Stephen Rothwell <hidden>
Date: 2016-06-16 04:32:05

Hi Linus,

After merging the gpio tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

In file included from drivers/gpio/gpiolib.c:25:0:
drivers/gpio/gpiolib.c: In function 'lineevent_irq_thread':
include/linux/kfifo.h:403:39: warning: 'ge.id' may be used uninitialized in this function [-Wmaybe-uninitialized]
    )[__kfifo->in & __tmp->kfifo.mask] = \
                                       ^
drivers/gpio/gpiolib.c:657:24: note: 'ge.id' was declared here
  struct gpioevent_data ge;
                        ^

Introduced by commit

  61f922db7221 ("gpio: userspace ABI for reading GPIO line events")

This is in the kfifo_put() call.

-- 
Cheers,
Stephen Rothwell

Re: linux-next: build warning after merge of the gpio tree

From: Linus Walleij <hidden>
Date: 2016-06-16 10:02:33

On Thu, Jun 16, 2016 at 6:32 AM, Stephen Rothwell [off-list ref] wrote:
After merging the gpio tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

In file included from drivers/gpio/gpiolib.c:25:0:
drivers/gpio/gpiolib.c: In function 'lineevent_irq_thread':
include/linux/kfifo.h:403:39: warning: 'ge.id' may be used uninitialized in this function [-Wmaybe-uninitialized]
    )[__kfifo->in & __tmp->kfifo.mask] = \
                                       ^
drivers/gpio/gpiolib.c:657:24: note: 'ge.id' was declared here
  struct gpioevent_data ge;
                        ^

Introduced by commit

  61f922db7221 ("gpio: userspace ABI for reading GPIO line events")

This is in the kfifo_put() call.
Thanks Stephen, Arnd has already helpfully made a patch to fix it :)

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help