On Mon, Dec 4, 2017 at 12:05 PM, kbuild test robot
<[email protected]> wrote:
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git
> topic/phy-reset-v4
> head: 8999caba1f624814c0e3e2a6fabfdab70ae44e9e
> commit: 8274c902dc09564722a4ef7e1364bb3f3f2f9f79 [1/4] phylib: Add device
> reset GPIO support
> config: i386-randconfig-x076-201749 (attached as .config)
> compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
> reproduce:
> git checkout 8274c902dc09564722a4ef7e1364bb3f3f2f9f79
> # save the attached .config to linux build tree
> make ARCH=i386
>
> Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
> http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
>
> All warnings (new ones prefixed by >>):
>
> In file included from arch/x86/include/asm/processor.h:32:0,
> from arch/x86/include/asm/cpufeature.h:5,
> from arch/x86/include/asm/thread_info.h:53,
> from include/linux/thread_info.h:38,
> from arch/x86/include/asm/preempt.h:7,
> from include/linux/preempt.h:81,
> from include/linux/spinlock.h:51,
> from include/linux/mmzone.h:8,
> from include/linux/gfp.h:6,
> from include/linux/slab.h:15,
> from drivers/net/phy/mdio_bus.c:20:
> drivers/net/phy/mdio_bus.c: In function 'mdiobus_register_device':
>>> include/linux/err.h:31:9: warning: 'gpiod' may be used uninitialized in
>>> this function [-Wmaybe-uninitialized]
> return (long) ptr;
> ^~~~~~~~~~
> drivers/net/phy/mdio_bus.c:52:20: note: 'gpiod' was declared here
> struct gpio_desc *gpiod;
> ^~~~~
Thanks!
Silly KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds