wrc1944 Advocate

Joined: 15 Aug 2002 Posts: 3465 Location: Gainesville, Florida
|
Posted: Thu Sep 11, 2014 9:21 pm Post subject: [-Wmaybe-uninitialized] warnings while building bzImage |
|
|
Lately, with the 3.16.x gentoo-sources kernels, I've been getting [-Wmaybe-uninitialized] warnings when doing "make xconfig", right at the onset of building bzImage (on several different Gentoo installs, both x86 and amd64). After these warnings, make bzImage settles down with no other warnings, as usual.
The first is immediately after starting "make bzImage", and the others are several seconds later. No warnings on "make modules."
Everything completes, and kernels run normally, but I'm wondering if these nagging warnings are anything to be concerned about, and if they are caused by the kernel source, or perhaps a gentoo-sources patch? Or, maybe something I missed in my config file?
(The first warning is running make xconfig, and the others were with make bzImage).
EDIT: OK- just tried a 3.17-rc4 from kernel.org, and get the same warnings, so that must eliminate any gentoo-sources (and "USE=experimental" patches).
Code: | In file included from scripts/kconfig/zconf.tab.c:2537:0:
scripts/kconfig/menu.c: In function ‘get_symbol_str’:
scripts/kconfig/menu.c:590:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]
jump->offset = strlen(r->s);
^
scripts/kconfig/menu.c:551:19: note: ‘jump’ was declared here
struct jump_key *jump;
----------------------------------------------------
In file included from scripts/sortextable.c:194:0:
scripts/sortextable.c: In function ‘main’:
scripts/sortextable.h:176:3: warning: ‘relocs_size’ may be used uninitialized in this function [-Wmaybe-uninitialized]
memset(relocs, 0, relocs_size);
^
scripts/sortextable.h:106:6: note: ‘relocs_size’ was declared here
int relocs_size;
^
In file included from scripts/sortextable.c:192:0:
scripts/sortextable.h:176:3: warning: ‘relocs_size’ may be used uninitialized in this function [-Wmaybe-uninitialized]
memset(relocs, 0, relocs_size);
^
scripts/sortextable.h:106:6: note: ‘relocs_size’ was declared here
int relocs_size;
^
-----------------------------------------------------
fs/namespace.c: In function ‘SyS_mount’:
fs/namespace.c:2647:6: warning: ‘kernel_dev’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ret = do_mount(kernel_dev, kernel_dir->name, kernel_type, flags,
^
fs/namespace.c:2626:8: note: ‘kernel_dev’ was declared here
char *kernel_dev;
^
fs/namespace.c:2647:6: warning: ‘kernel_type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ret = do_mount(kernel_dev, kernel_dir->name, kernel_type, flags,
^
fs/namespace.c:2624:8: note: ‘kernel_type’ was declared here
char *kernel_type;
^
CC fs/seq_file.o
|
_________________ Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.41-r2, gcc-15.1.0
kernel-6.15.6 USE=experimental python3.13.3 |
|