Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1521329

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

From Stephen Rothwell <sfr@canb.auug.org.au>
Newsgroups linux.kernel
Subject linux-next: build warning after merge of the gpio tree
Date 2016-11-14 06:40 +0100
Message-ID <sDi9P-2DZ-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

linux-next: build warning after merge of the gpio tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-11-14 06:40 +0100

csiph-web