lkml.org 
[lkml]   [2016]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectlinux-next: build warning after merge of the gpio tree
Hi Linus,

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

drivers/gpio/gpiolib-acpi.c: In function 'acpi_gpiochip_add':
drivers/gpio/gpiolib-acpi.c:925:9: warning: 'lflags' may be used uninitialized in this function [-Wmaybe-uninitialized]
ret = gpiod_hog(desc, name, lflags, dflags);
^
drivers/gpio/gpiolib-acpi.c:912:16: note: 'lflags' was declared here
unsigned int lflags, dflags;
^
drivers/gpio/gpiolib-acpi.c:925:7: warning: 'dflags' may be used uninitialized in this function [-Wmaybe-uninitialized]
ret = gpiod_hog(desc, name, lflags, dflags);
^
drivers/gpio/gpiolib-acpi.c:912:24: note: 'dflags' was declared here
unsigned int lflags, dflags;
^

These presumably have appeared since -Wmaybe-uninitialized has been
reenabled in Linus Torvald's tree.

--
Cheers,
Stephen Rothwell

\
 
 \ /
  Last update: 2016-11-14 06:31    [W:0.032 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site